I am trying simple linked list Collection program, but it is not giving me out put.
i created this stuff
import java.lang.*;
import java.util.*;
cla
The first answer (by Nandkumar) is right, I'd also check the runtime error, caused by this lines:
while (litr.hasPrevious ())
{
Object obj3=litr.next ();
System.out.print (obj3+",");
}
That is: you check if your iterator has a "previous" item, then go for tne "next"? Probably not what you intended to do.
The "error" at compile time is only a warning, you can run your program after compilation, but the compiler is telling you that it found something strange in your code.