See post #12
Type: Posts; User: Norm
See post #12
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...
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
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.