Retrieve the minimum value from various pairs of numbers.
System. |
The min() method retrieves the number with the lowest value from a pair of numbers.
To obtain the number with the highest value, you can utilize the max() method.
One of the following:
public
|
public |
public |
|
Parameter |
Description |
x |
Please provide a number. |
y |
Please provide a number. |
Returns |
Please provide a numerical value that represents the smaller of two numbers, which could be a double, float, int, or long. |
Java Version |
Any |