Iteration through a Generic List (Java 5 version)


/ Published in: Java
Save to your folder(s)

This code uses the new Java 5 foreach loop to iterate through every element of a list. It avoids the need to declare an iterator.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.