Given an array of ints named values, what does the following code do?

            for (int i = 0; i < values.length; i++)
            {
                values[i] = i * i;
            }
          

Fills the array with squares (0, 1, 4, 9, 16, ...)
  • Calculates the sum and average of the values
  • Finds the maximum of the values
  • Prints all the values

There are no hints for this question