[Bluej-discuss] ArrayList ex 4.25 2nd edition
Sheryl
bubblez123 at xtra.co.nz
Thu Oct 5 01:53:46 BST 2006
I am confused about the instructions in this question. When an iteration takes place, doesn't it check all of the objects stored in the ArrayList anyway. Or is it because there is one ArrayList field and another ArrayList method that you have to specify which list to check?
Should it say something like
public ArrayList getUnsold()
{
Iterator it = lots.iterator();
while(it.hasNext()) {
Lot lot = (Lot) it.next();
unsold = getUnsold;
return unsold;
}
Sheryl
bubblez123 at xtra.co.nz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bluej.org/pipermail/bluej-discuss/attachments/20061005/5f3de234/attachment.html
More information about the bluej-discuss
mailing list