Add a method named getMax() to the HighArray class of the highArray.java program (Listing-2.3), which returns the value of the largest key in the array, or -1 when the array is empty.
Add a method named getMax() to the HighArray class of the highArray.java program (Listing-2.3), which returns the value of the largest key in the array, or -1 when the array is empty.