Question: Ise tl To the HighArray class in the highArray.java program ( Listing 2 . 3 ) , add 2 of the following methods: getMax (

Ise tl
To the HighArray class in the highArray.java program (Listing 2.3), add 2 of the following methods:
getMax() that returns the value of the highest key (value) in the array without removin it from the array, or -1 if the array is empty.
removeMax 0 that removes the item with the highest key from the array.
reverse() method for the HighArray class to reverse the order of elements of the array.
e ins
Add some code in main() to exercise these methods.
Note: you can download the HighArray class code from the blackboard.
Sample output of Current HighArray class:
77,99,44,55,22,88,11,0,66,33
Can't find 35
77,44,22,88,11,66,33
Sample output of HighArray class once you do the above methods:
 Ise tl To the HighArray class in the highArray.java program (Listing

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!