Create afile named Driver.java which will contain the main method. Use 15 for the number of elements.
Question:
Create afile named Driver.java which will contain the main method. Use 15 for the number of
elements. These values will be generated by a Random number generator. Printout the array of elements, then
ask the user to enter a list of target values, then printout the indices of the interval. It should like similar to the
screenshot below.
Think about the classes and methods that you will need to create this. I would suggest that if you have 1 class and
everything in the main method, that probably is not going to be a good design. I would suggest a class named
Driver, a class named Interval, and a class named IntervalFinder. Dont forget documentation/comments
Introduction to Algorithms
ISBN: 978-0262033848
3rd edition
Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest