Edward Strife wrote:I get an error when calling next() during my return SalesPerson method.
Because AbstractList does not define a
next() method. I suspect you're confusing an AbstractList with its
Iterator.
I think you'd also be much better off if you use generics, viz:
public class SortedListOfSalesperson extends AbstractList<SalesPerson> { ...
you'll find everything a lot easier (and you won't need to cast).
Winston