Online Java Compiler By
JavaTpoint.com
public class MinExample1 { public static void main(String args[]) { int x = 20; int y = 50; //print the minimum of two numbers System.out.println(Math.min(x, y)); } }
Output