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

            double largest = values[0];
            for (int i = 1; i < values.length; i++)
            {
              if (values[i] > largest)
              {
                  largest = values[i];
              }
            }

 
        

Finds the max value
  • Finds the min value
  • Calculates the sum and average of the values
  • Fills the array with squares (0,1,4,9, ...)

There are no hints for this question.