java.lang
Class  Math
java.lang.Object
  |
  +--java.lang.Math
- public class Math
- extends Object
  
| 
Method Summary | 
static int | 
abs(int a)
 
          Find the absolute value of a value. | 
static int | 
max(int a,
    int b)
 
          Find the maximum of two values. | 
static int | 
min(int a,
    int b)
 
          Find the minimum of two values. | 
 
 
min
public static int min(int a,
                      int b)
- Find the minimum of two values.
- Parameters:
 a - first value.b - second value.- Returns:
 - the minimum value of a and b.
 
 
 
max
public static int max(int a,
                      int b)
- Find the maximum of two values.
- Parameters:
 a - first value.b - second value.- Returns:
 - the maximum value of a and b.
 
 
 
abs
public static int abs(int a)
- Find the absolute value of a value.
- Parameters:
 a - value.- Returns:
 - the absolute value of a.