public class IntArrayFunctions
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MODE_COMMA |
static int |
MODE_LINE_BREAK |
| Constructor and Description |
|---|
IntArrayFunctions() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isEqual(int[] a,
int[] b)
Returns whether two int arrays have exactly the same values in the same order.
|
static int |
multiplyValues(int[] ints)
Multiplies all the values of the specified int array.
|
static void |
print(int[] ints,
int mode)
Prints an array of Integers, one value per line.
|
static boolean |
sharesNoEntry(int[] a,
int[] b)
Returns whether two int arrays have no shared value.
|
public static final int MODE_LINE_BREAK
public static final int MODE_COMMA
public static void print(int[] ints,
int mode)
ints - any int arraymode - 0 if values should be printed one line per number, 1 if you want them comma separated.public static boolean sharesNoEntry(int[] a,
int[] b)
a - an int array.b - another int array.public static boolean isEqual(int[] a,
int[] b)
a - an int array.b - another int array.public static int multiplyValues(int[] ints)
ints - the int array to multiply the values of.