Answers for "how to call a method to main in java"

0

main methode java

public class Test {

public static void main(String[] args){

	System.out.println("Hello Luggas");
	
	}
}
Posted by: Guest on December-22-2020
0

how to write a method inside main in java

public class Main {
  static void myMethod() {
    System.out.println("I just got executed!");
  }

  public static void main(String[] args) {
    myMethod();
  }
}

// Outputs "I just got executed!"
Posted by: Guest on May-31-2021
-1

java main method

// for autocomplete just type
main
// and a shortcut shoould apear
Posted by: Guest on February-03-2021

Code answers related to "how to call a method to main in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language