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

[ad_1]

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

0

[ad_2]

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