If currentSize is 8, trace

            int[] values = { 35, 16, 100, 12, 100, 200, 250, 500, 0, 0};
            int newElement = 11;
            if (currentSize < values.length) {
                currentSize++;
                values[currentSize - 1] = newElement;
            }
          

What is the array after the code executes?

{ 35, 16, 100, 12, 100, 200, 250, 500, 11, 0};
  • { 35, 16, 100, 12, 100, 200, 250, 500, 0, 11};
  • { 35, 16, 100, 12, 100å, 200, 250, 11, 500, 0};
  • { 35, 11, 16, 100, 12, 100, 200, 250, 500, 0 };
  • { 11, 35, 16, 100, 12, 100, 200, 250, 500, 0 };
  • { 35, 11, 100, 12, 100, 200, 250, 500, 0, 0 };

There are no hints for this question