posted 21 years ago
You have to do the following:
ListIterator iterator = gcVector.listIterator();
while( iterator.hasNext() ){
iterator.next();
System.out.print("*");
}
iterator.hasNext() does not advance the pointer. You have to do iterator.next() to advance the pointer.
Hope this help,
Payam.