|
Post by EurasianVixen on Jan 30, 2002 21:15:58 GMT -5
Does anyone know if we are suppose to fill in the missing bodies of methods hasNext() and next()? Are we suppose to print ALL tags for TagIterator including things like </a> and </b>? Don't we need to store the tags into a vector or list of some sort before we can iterate thru it? Who here understands A2?!
|
|
|
Post by Sylph on Jan 30, 2002 21:33:50 GMT -5
Does anyone know if we are suppose to fill in the missing bodies of methods hasNext() and next()? i think so. that's what i was wondering. but it doesn't say we can't, so maybe we can. that's what i'm wondering as well.
|
|
|
Post by Sylph on Jan 30, 2002 22:44:39 GMT -5
[glow=orange,2,300]How do we add an object to Iterator without using a list, one at a time? PLEASE HELP![/glow]
|
|
|
Post by Sylph on Jan 31, 2002 18:46:32 GMT -5
i think i get it now, but i didn't try it out yet. i think ur only supposed to start processing stuff when next() is called. so u don't use an actual Iterator, but each time next() is called, u find the next tag and return it.
|
|
|
Post by EurasianVixen on Jan 31, 2002 20:30:09 GMT -5
So you don't need to make an object Iterator? Such as: Iterator it = new Iterator?
|
|