What does the following code snippet do?
for (int i = 0; i < array.length; i++) { array[i] *= 2; }
Doubles the size of the array
array
Removes every other element from the array
Multiplies each element in the array by 2
Adds 2 to each element in the array