Run »
public class Main { static void myMethod() { System.out.println("Hello World!"); } public static void main(String[] args) { myMethod(); } }
Hello World!