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


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

package com.codingdict;



import java.lang.*;



public class MathDemo {



   public static void main(String[] args) {



      // get two long numbers

      long x = 6098499785l;

      long y = 1000087898745l;



      // print the larger number between x and y

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

   }

}