Purpose of the getMax function

The purpose of the function in Listing 7 is to find the algebraic maximum value in the array and to return that value as type long.