从 W3Schools.cn 在线教程学习 Web 网络开发
运行结果尺寸: 625 x 591
MyClass.java
 


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

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


Result:
I just got executed!
I just got executed!
I just got executed!