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