Java Utililty Methods Array Add

List of utility methods to do Array Add

Description

The list of methods to do Array Add are organized into topic(s).

Method

Object[]addArrays(Object[] array1, Object[] array2)
add Arrays
Object[] a = new Object[array1.length + array2.length];
System.arraycopy(array1, 0, a, 0, array1.length);
System.arraycopy(array2, 0, a, array1.length, array2.length);
return a;
String[]addArrays(String[] a, String[] b)
add Arrays
String[] c = new String[a.length + b.length];
System.arraycopy(a, 0, c, 0, a.length);
System.arraycopy(b, 0, c, a.length, b.length);
return c;
booleanaddArrayToArray(byte[] baseArray, int startIndex, byte[] newArray)
add Array To Array
if (startIndex + newArray.length > baseArray.length)
    return false;
for (int i = 0; i < newArray.length; i++)
    baseArray[startIndex + i] = newArray[i];
return true;