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