What does the following algorithm do?

public static void mystery(int nums[]) {
for (int i = 0; i < nums.length; i++) {
if (nums[i] % 2 != 0)
nums[i]++;
}
}


1. Adds 1 to every value in the array.
2. Tests if the elements in the array are even or odd.
3. Changes all the values in the array to even numbers.
4. Doubles all the values in the array.
5. Doubles every other value in the array.