Search:

Type: Posts; User: Norm

Search: Search took 0.08 seconds.

  1. Replies
    13
    Views
    1,989

    Re: collection problem

    See post #12
  2. Replies
    13
    Views
    1,989

    Re: collection problem

    If you are at the beginning of a list, what would be the previous element in the list?
    Can you give me an example?


    1st 2nd 3rd
    ^ ^ ^ ^

    If you are before 1st what would...
  3. Replies
    13
    Views
    1,989

    Re: collection problem

    The while loop will never execute.

    Add this just before the println statement you just added:


    lit.next(); lit.next(); //<<<< Move 2 slots to make for previous
  4. Replies
    13
    Views
    1,989

    Re: collection problem

    To see what the code is doing, printout the value of the condition used in the while() statement before executing the while statement. That will show you why the while is not executing.
Results 1 to 4 of 4