resizing arrays.java