java.lang.Math.min(double a, double b) java.lang.Math.max(long a, long b) java.lang.Math.min(float a, float b) java.lang.Math.min(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 = 9875.875; double y = 154.134; // print the smaller number between x and y System.out.println("Math.min(" + x + "," + y + ")=" + Math.min(x, y)); } } java.lang.Math.max(long a, long b) java.lang.Math.min(float a, float b)