Online Java Compiler By
JavaTpoint.com
public class IntegerMinExample1 { public static void main(String[] args) { // Get two integer numbers int a = 5485; int b = 3242; // print the smaller number between x and y System.out.println("Math.min(" + a + "," + b + ")=" + Math.min(a, b)); } }
Output