[Solved] How to return an array with one element larger? [duplicate]


public Employee2[] ePlus(Employee2[] input) {
    Employee2[] output = new Employee2[input.length + 1];
    System.arraycopy(input, 0, output, 0, input.length);
    return output;
}

0

solved How to return an array with one element larger? [duplicate]