StrictMath.min(double a, double b) has the following syntax.
public static double min(double a, double b)
In the following code shows how to use StrictMath.min(double a, double b) method.
/* w w w . j a v a2 s. c om*/ public class Main { public static void main(String[] args) { double d1 = 10 , d2 = 40, d3 = -25; System.out.println(StrictMath.min(d1, d2)); System.out.println(StrictMath.min(d1, d3)); } }
The code above generates the following result.