Kev Woo wrote:
1. It will only check every odd word (1st, 3rd, 5th...). If I try to enter an even word it gives me this error: java.util.NoSuchElementException: No line found
2. When it does check, it returns the next word on the list (an even number word).
I think the problem is within the while loop but I can't figure it out.
Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)