Finding extreme values is standard procedure.

Introduce a variable called maxValue or something. Assign the first value of the array to maxValue. Then loop through all values in the array once and for each value check whether it's higher than maxValue. If it is, assigned it to maxValue. Afterwards maxValue will hold the highest value of the array.