You didn't post the entire class, but I can guess that in the previous version the
Iterator<E> it = .....
was an instance variable. This means at least 2 bad things:
First, the iterator...
Type: Posts; User: andbin
You didn't post the entire class, but I can guess that in the previous version the
Iterator<E> it = .....
was an instance variable. This means at least 2 bad things:
First, the iterator...
Without the "class" keyword, the only way is .... an anonymous inner class!
Anonymous Classes (The Java™ Tutorials > Learning the Java Language > Classes and Objects)
You shoud have a method...