|
Bill Teter email: william.teter@plattsburgh.edu |
|
|
Lab 5 Sorted ArrayList In this lab you will create a generic Sorted ArrayList class that implements the SortedList interface that I have written and is in my repository. Use svn to get a copy. You will not use any of the classes from the API. The objects in a SortedArrayList<AT> will be stored in a field that is an array of Objects. When you need to compare components of this array you will need to caste the component to AT, the generic type. You will develop your code in the svn repository. Include in your repository a file called ReadMe that tells me which methods you have implemented and tested. As soon as you have developed and tested another method add it to your ReadMe file, and recommit the ReadMe file. An object of the SortedArrayList<AT extends Comparable<? super AT>> must have its components sorted. More precisely, if X is a SortedArrayList object, for any 0<=i<j<X.size() (X.get(i)).compareTo(X.get(j)) < = 0. Step 1. Step 2. Step 3. By the end of our lab on Wednesday you should have the
following methods working: |