第一个Java程序


第一个Java程序

public class MyFirstJavaProgram {



   /* This is my first java program.

    * This will print 'Hello World' as the output

    */



   public static void main(String []args) {

      System.out.println("Hello World"); // prints Hello World

   }

}