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