public static void main(string args ) system.out.println("Hello World!) code example
Example 1: java main
class myClass {
public static void main(String[] args) {
// code
}
}
Example 2: public class HelloWorld{ public static void main(String []args){ System.out.println("Hello World"); } }
public class HelloWorld{
public static void main(String []args){
System.out.println("Hello World");
}
}