Search:

Type: Posts; User: andbin

Search: Search took 0.13 seconds.

  1. [SOLVED] Re: creating an iterator without creating a class for it

    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...
  2. [SOLVED] Re: creating an iterator without creating a class for it

    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...
Results 1 to 2 of 2