I need to change the size of an array, but I cannot simply create another - It needs the same name so I can pass it to a method. Specifically, I need the array to have twice
int[] a = new int[5]; // fill a int[] b = Arrays.copyOf(a, 10);