The actual ArrayList class in the java .util package has a method called subList that returns a
Question:
The actual ArrayList class in the java .util package has a method called subList that returns a view of a subportion of a list through a given range of indexes. It can be useful to think of part of a list as if it were its own list, complete with its own set of indexes and values. The sublist is âbackedâ by the original list, meaning that it is not a copy; if any change is made to the sublist, the original list is also affected. In order to implement this method, you will need to write an inner class inside ArrayList
Step by Step Answer:
Building Java Programs A Back To Basics Approach
ISBN: 9780135471944
5th Edition
Authors: Stuart Reges, Marty Stepp