How do you find the maximum element in an array in Java?
You can use a loop to iterate through the array, comparing each element and keeping track of the maximum value.
Nice work! You've described the approach to finding the maximum element.
How would you modify this to find the minimum element instead?