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