Home > Back-end >  JAVA
JAVA

Time:09-30

Write code can't run, the great god see what this is about

CodePudding user response:

You need to have a main method

CodePudding user response:

Specific what does it mean that didn't quite understand

CodePudding user response:

You need a static main method in the class most program entrance, can run
Public static void main (String args []) {
//your logic
System. Out.println (" Hello World!" );
}

CodePudding user response:

Thank you, you are so much

CodePudding user response:

The
reference 4 floor qq_46484202 reply:
thank you, you are so much

Just learning Java? Introduction to have questions can ask me ah, have the time must reply

CodePudding user response:

reference 5 floor bugpool reply:
Quote: refer to 4th floor qq_46484202 response:
thank you, you are so much

Just learning Java? Introduction to have questions can ask me ah, have the time must reply

Just learn JAVA, thank you, the great god that's very kind of you

CodePudding user response:

Public static void main (String args []), the words can be absolutely is not to forget,

CodePudding user response:

reference 7 floor huangfuyk. Response:
public static void main (String args []), the words can be absolutely is not to forget,

Ok, thank you, I remember

CodePudding user response:

0.0, ha ha ha ha ha ha ha, write the main method, CTRL + F11 running line

CodePudding user response:

See the class as a house, the house you no doors, need a door, the public static void main (String args []) in the second line