Online Java Compiler By
JavaTpoint.com
public class IntegerMinExample4 { public static void main(String[] args) { //Get two integer numbers int a = -20; int b = 25; // prints result with negative value System.out.println("Result: "+Math.min(a, b)); }
Output