Note: Write and output the Java program. Note the java program output.
Create a file named demo. java
// Write the framework File
Public class Demo {
// Write the entry file
Public static void main (String [] args ){
System. out. print ("In fact, in this world, nothing can be successful as long as you work hard. After all, there are a lot of people who work hard. in a big city, the only thing that is lacking is the dream, and the best is the excellent people. However, if you are good, what can you do? Everyone has different comments on excellence. If you are not good enough, you can leave yourself irreplaceable. There are two alternative ways: one is to do what others do not want to do, and the other is to do what others can do well to do excellence. "); // Output to the screen
}
}
Note: The class name must be consistent with the file name. {And} correspond to each other one by one, which is indispensable.
The following code runs the program. Open cmd and check that java is installed under the drive letter.
Enter d: Press enter and enter javac Demo. java press enter and enter java Demo, for example: