The most classic Java start

xiaoxiao2021-03-05  28

Know what is the most classic Java program? That is HelloWorld! Yes, it is it! This short program is definitely every programmer will encounter when you study a program! Small but complete. This program seems to tell us that the vitality of the program is definitely not the length of the code, and the simplest solution to find the simplest solution is that we should pursue. This is the classic helloworld: public class helloworld {public static void main (string [] args) {system.out.println ("Hello World");}} Compile .java file into .class with javac helloWorld.java command line. The byte file can then use Java HelloWorld to see the result of the program run at the console.

转载请注明原文地址:https://www.9cbs.com/read-34485.html

New Post(0)