Originally Posted by
chrisych
Dear All,
I have a problem on using the iterator.
Why should I run “iter = myList.iterator();” one more time in order to get the correct results in TestLinkedList.java?
Please find the attached file for your reference.
Thank you very much!
Best Regards,
Chris.
It'd be much easier if you placed your code useing the provided shortcut. If you read the "before you post" sticky thread, you would know to put your code in this:
If this is your first time here, there a few rules we would like you to follow before posting:
1. Use code blocks for your code, please! To use code blocks, put [ code] before the code and [/ code] after it. It will look like this:
Java Code