Question: Please use java. Thanks To the HighArray class in the highArray java program (Listing 2.3), add 2 of the following methods: 1. getMax() that returns

Please use java. Thanks Please use java. Thanks To the HighArray class in the highArray java

To the HighArray class in the highArray java program (Listing 2.3), add 2 of the following methods: 1. getMax() that returns the value of the highest key (value) in the array without removing it from the array, or-1 if the array is empty. 2. removeMax that removes the item with the highest key from the array. 3. reverse() method for the HighArray class to reverse the order of elements of the array, 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 @ 66 33 Can't find 35 77 44 22 88 11 66 33 Sample output of HighArray class once you do the above methods: current array items: 77 99 44 55 22 88 11 e 56 33 Can't find 35 array items after delete some values: 77 44 22 88 11 56 33 the Max is 88 the array after calling wax nethod: 77 44 22 88 11 66 33 the array after calling remove sax method: 77 44 22 11 66 33 the new wax is 77 the array after calling reverse method 33 66 19 22 44 77

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!