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