java.lang.Double min(double a,double b)

Syntax:

public static double min(double a,double b)

Java Code Example :

This java example source code demonstrates the use of min(double a,double b) method of Double class.

Some takeaways on this method:

  • Returns the smaller of two double values as if by calling Math.min.
  • since JDK 1.8

Sample Output :

Running the above example source code will give the following output

Suggested Reading List :

References :