MyClass.java
 

public class MyClass {
  static void myMethod(int x) {
    System.out.println(x);
  }

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

Result:
10