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?

No
  • Yes

There are no hints for this question