One of the nicer features of JDK5 is the enhanced for loop (or the foreach loop). Java.net has published an article with in-depth information about this construct. I highly recommend reading the article, it contains some (at least to me) new information.