Online Java Compiler By
JavaTpoint.com
public class MaxExample3 { public static void main(String args[]) { float x = -25.74f; float y = -20.38f; //print the maximum of two numbers System.out.println(Math.max(x, y)); } }
Output