All pastes #453288 Raw Edit

Untitled

public text v1 · immutable
·published 2007-04-22 22:24 UTC
rendered paste body
my assignment instructions:

<> Write an interface class for the BorrowingList ADT.

<> Without using any of  Java’s existing container classes except the basic array class, design, implement an array implementation for the BorrowingList interface class.  Call this class, Loans.

 - at this point I have a BorrowingList class, which is an interface. I have a Loans class, which IMPLEMENTS BorrowingList. Is this correct?


<> Design, implement and test an Iterator class which implements the Java Iterator interface for the implementation of the  BorrowingList interface (you should have a LoanstIterator class).  

 - I am thinking that I need to write an iterator, as the implementation of BorrowingList. Am I correct in thinking this class should have a totally new name?
 - Am I correct in thinking that LoansIterator is for cycling through the array defined in Loans?