Java StrictMath.min(long a, long b)
Syntax
StrictMath.min(long a, long b) has the following syntax.
public static long min(long a, long b)
Example
In the following code shows how to use StrictMath.min(long a, long b) method.
//from w w w .ja v a 2s. co m
public class Main {
public static void main(String[] args) {
long l1 = 1234567890987L, l2 = 123312123L, l3 = -213321123321L;
System.out.println(StrictMath.min(l1, l2));
System.out.println(StrictMath.min(l1, l3));
}
}
The code above generates the following result.