Java Array Add addArray(Object[] Old, Object[] New)

Here you can find the source of addArray(Object[] Old, Object[] New)

Description

add Array

License

Open Source License

Declaration

public static Object[] addArray(Object[] Old, Object[] New) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static Object[] addArray(Object[] Old, Object[] New) {
        Object[] result = new Object[Old.length + New.length];
        for (int zahl = 0; zahl < result.length; zahl++)
            if (zahl < Old.length)
                result[zahl] = Old[zahl];
            else/* www  .  ja v  a2 s.com*/
                result[zahl] = New[zahl - Old.length];
        return result;
    }
}

Related

  1. addArray(double[] array1, double[] array2)
  2. addArray(int[] a, int p)
  3. addArray(int[] a, int[] b)
  4. addArray(Object[][] first, Object[][]... more)
  5. addArray(StringBuffer RCode, String name, T[] array, boolean useEquals, boolean isString)
  6. addArrayAll(byte[] array1, byte[] array2)
  7. addArrayElements(byte[] toArray, byte[] fromArray)