how to call a function from the main in java code example
Example: java define main function
public class Program {
public static void main(String[] args){
System.out.println("Hello, World!");
}
}
public class Program {
public static void main(String[] args){
System.out.println("Hello, World!");
}
}