http://www.java-forums.org/new-java/41792-accessing-variable-loop.html

Duplicate post!