This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I'm not sure what you are asking. Are you saying you need the String  token once you exit your for loop, or are you saying that after you iterate through the list (and print), you want to iterate again?
or are you asking something else?
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Joined: May 30, 2007
This is my scenerio
I am a reading a file and separated as tokens,and then i added that tokens into list,now i need separated tokens in my list on iterate..
Here i am attaching my code..
[ UD: In the future, please UseCodeTags when posting code of an length. It's unnecessarily hard to read the code as it is, making it less likely that people will bother to do so. ]