A New Internet Library: Add Your Website/Blog or Suggest A Website/Blog to our Free Web Directory http://anil.myfunda.net.

Its very simple, free and SEO Friendly.
Submit Now....

Sunday, May 24, 2009

Restating the problem

A problem statement:

I am trying to loop though a sequence of strings. How can I determine when I am on the last item in a sequence? I don't see how to do it with "foreach".

Indeed, "foreach" does not make it easy to know when you are almost done. Now, if I were foolish enough to actually answer the question as stated, I'd probably say something like this:

You can do so by eschewing "foreac...Full Article.

No comments:

Post a Comment

Post your comments here:

Originals Enjoy