The HighArray class adds a method called getMax()

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.

 

 

Guess you like

Origin blog.csdn.net/m0_64206989/article/details/127440754
Recommended