Set up a trial minimum value
The function in Listing 6 begins by declaring a variable named min and initializing that variable with a trial minimum value of 2147483647.
(This is the largest possible value that can be stored in an array element of type long.)
Therefore, every value in the array must be less than or equal to that value.