java.lang.Math.max(float a, float b) java.lang.Math.max(double a, double b) java.lang.Math.max(int a, int b) java.lang.Math.max(float a, float b) package com.codingdict; import java.lang.*; public class MathDemo { public static void main(String[] args) { // get two float numbers float x = 60984.1f; float y = 1000f; // print the larger number between x and y System.out.println("Math.max(" + x + "," + y + ")=" + Math.max(x, y)); } } java.lang.Math.max(double a, double b) java.lang.Math.max(int a, int b)