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