This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
The moose likes Java in General and the fly likes Iterator<String> problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Iterator<String> problem" Watch "Iterator<String> problem" New topic
Author

Iterator<String> problem

Vatsa dude
Greenhorn

Joined: Apr 29, 2009
Posts: 22
Hi, I have a client calling code like this:



Requirement - Return a single Iterator<String> that chains together the array of Iterator<String>s in the order that
they are provided, but skips {@code null} values.

actual method implmentation of iterateStrings



How do I copy the stringIterators to a LIst. I thought of doing that, then in a for loop, removing the null values and returning the Iterator<String>..Please advice.
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: Iterator<String> problem