how to use method java in main code example
Example 1: java main method
public static void main(String args[]){}
Example 2: main method java
public class Test {
static void main(String[] args){
System.out.println("Hello World");
}
}
public static void main(String args[]){}
public class Test {
static void main(String[] args){
System.out.println("Hello World");
}
}