Question: Please solve in java ! Problem (100 points): Write a class that uses an array to represent a set of positive integers. It must contain
Problem (100 points): Write a class that uses an array to represent a set of positive integers. It must contain a method maxArray, that returns the maximum value in the array between indexes i and j. If i>j, then 0 is returned, as a special case. This program should be interactive. You should allow the user to specify the initial size of the array, the left-end index i and the right-end index j. Method main() would be a good place to implement this interactivity. The program must compute the max value for at least three sample arrays
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
