public class Numbers
extends java.lang.Object
| Constructor and Description |
|---|
Numbers() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isGreater(int value1,
int value2)
Returns
true if value1 is larger then value2. |
static int |
max(int value1,
int value2)
Returns the greater of two int values.
|
static double[] |
sortAscending(double[] values)
Sorts the given values in ascending order.
|
static double[] |
sortDescending(double[] values)
Sorts the given values in descending order.
|
static double |
squareRoot(double value)
Returns the correctly rounded positive square root of a
double value. |
static java.lang.String |
toHex(int value)
Returns a string representation of the integer argument as an unsigned integer in base 16.
|
public static double squareRoot(double value)
double value.value - a value.public static int max(int value1,
int value2)
value1 - an argument.value2 - another argument.public static java.lang.String toHex(int value)
value - an integer to be converted to a string.public static boolean isGreater(int value1,
int value2)
true if value1 is larger then value2.value1 - value2 - true if value1 is larger then value2.public static double[] sortDescending(double[] values)
values - The values to sort.public static double[] sortAscending(double[] values)
values - The values to sort.