Try this in the
Java editor: go to a blank line and type "for" (3 letters without the quotes) and press Ctrl-Space. You'll get several options including:
for
for - iterate over array
for - iterate over array w/temporary variable
for - iterate over collection
etc...
Select the second one, iterate over array. The Java editor will create a for loop for you and take a guess at some variable names.
But that's not all. Notice the index variable is highlighted - now without clicking anywhere else start typing something and Eclipse will change the variable name in *all 3 places* it occurs. Now hit tab, and the editor will jump over to the array name and allow you to change that too.
Now to really blow your mind, these templates are completely user definable and editable. Select Window > Preferences > Java > Editor > Templates. Scroll down until you see the definition for "iterate over array" under "for" to see how this one is defined.
Enjoy!