Maybe this will help.
Java: Arrays
Look under"Java idiom for looping over an array - for loop"