Search:

Type: Posts; User: Lenjaku

Search: Search took 0.36 seconds.

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

    I agree. Unfortunately we were asked to use existing methods.
    I would write a method that scans till current index -1 or something, pretty much does the same but without using external method.
    On...
  2. [SOLVED] Re: creating an iterator without creating a class for it

    forgot to add this:

    @Override
    public boolean hasNext() {
    if(index>0)
    return true;
    return false;
    }
  3. [SOLVED] Re: creating an iterator without creating a class for it

    First thank you very much for the help.

    I tried doing it but my Iterator wouldn;t iterate...it prints the first 1 only...
    It should (by what we were asked) start from the end to teh start so I...
  4. [SOLVED] creating an iterator without creating a class for it

    I was asked to add an iterator to a class called MyLinkedList<E> which extends MyAbstractList<E> (abstract class) which implements MyList<E> (interface) .

    Now I am asked to create the iterator...
Results 1 to 4 of 4