1public class Test {
2
3public static void main(String[] args){
4
5 System.out.println("Hello World");
6
7}
8}
9
1public class Program {
2 public static void main(String[] args){
3 System.out.println("Hello, World!");
4 }
5}
1public class Test {
2
3public static void main(String[] args){
4
5 System.out.println("Hello Luggas");
6
7 }
8}
1public class Test {
2
3static void main(String[] args){
4
5 System.out.println("Hello World");
6
7}
8}
9
1public class Main {
2 static void myMethod() {
3 System.out.println("I just got executed!");
4 }
5
6 public static void main(String[] args) {
7 myMethod();
8 }
9}
10
11// Outputs "I just got executed!"
12
13