MyClass.java
 

public class MyClass {
  public static void main(String[] args) {
    System.out.println(Math.min(5, 10));  
  }
}

Result:
5