public final class ArrayHelper
extends java.lang.Object
Constructor and Description |
---|
ArrayHelper() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object[] |
cat(java.lang.Object[] arr1,
java.lang.Object[] arr2)
Concatenates the given arrays into a single long array.
|
static boolean |
equal(java.lang.Object[] arr1,
java.lang.Object[] arr2)
Tests two arrays to see if the arrays are equal.
|
static void |
print(java.lang.Object[] arr)
Prints out a comma separated list of all the objects
in the array on a single line in CSV format.
|
public static java.lang.Object[] cat(java.lang.Object[] arr1, java.lang.Object[] arr2)
For example it can be called like this:
String[] arr = (String[])ArrayHelper.cat(new String[]{"one","two"}, new String[]{"three","four"});
arr1
- first arrayarr2
- second arraypublic static void print(java.lang.Object[] arr)
arr
- Array to print in comma separated value formatpublic static boolean equal(java.lang.Object[] arr1, java.lang.Object[] arr2)
arr1
- first arrayarr2
- second arrayCopyright (c) 2001-2020 by Stephen Ostermiller