How to re-size an array with keeping the previous value in java?

Printable View