If pos is 4 and currentSize is 7, trace this code that removes an item:

            int[] values = {10, 20, 30, 40, 50, 60, 70};
            for (int i = pos + 1; i < currentSize; i++) {
                 values[i - 1] = values[i];
            }    
        
What is the array after the code executes?

{10, 20, 30, 40, 60, 70, 70}
  • {10, 20, 30, 50, 60, 70, 70}
  • {10, 20, 30, 40, 50, 60, 70}
  • {10, 20, 30, 40, 70, 60, 50}

There are no hints for this question