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