Posted By:
Dohyeon_KIM
Posted On:
Wednesday, September 5, 2001 12:42 AM
I want two iterator for same ArrayList. for example
for (Iterator i = objList.iterator(); ...) {
for (Iterator j = i; ... ) {
....
It seems iterator share same iterator in ArrayList.
What I want to do is ... If there is 10 elements (1, 2, ... 10)
pick 1 and compare it with 2, 3... 10.
pick 2 and compare it with 3,4,...10
...
...
pick 9 and compare it with 10
(using next() instead of index number)