java.lang.Math.max(double a, double b)


java.lang.Math.max(double a, double b)

package com.codingdict;



import java.lang.*;



public class MathDemo {



   public static void main(String[] args) {



      // get two double numbers

      double x = 60984.1;

      double y = 1000;



      // print the larger number between x and y

      System.out.println("Math.max(" + x + "," + y + ")=" + Math.max(x, y));

   }

}