diff options
author | Geoff Liu <cangming.liu@gmail.com> | 2015-05-26 13:30:20 -0600 |
---|---|---|
committer | Geoff Liu <cangming.liu@gmail.com> | 2015-05-26 13:30:20 -0600 |
commit | 5ac5b265fe48d06d8b0def546bdcfc6f77e255a7 (patch) | |
tree | ea436dc9845630b357546a3a3108b297dec83e04 /java.html.markdown | |
parent | bb7560f63e06534617e0ab2411ef33e7e3edf5d6 (diff) | |
parent | 8c3a0be856770aab3484e48cd1d1c11162b72db4 (diff) |
Merge pull request #1116 from drguildo/master
Further improve for loop description.
Diffstat (limited to 'java.html.markdown')
-rw-r--r-- | java.html.markdown | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/java.html.markdown b/java.html.markdown index 7ab22823..928eb39f 100644 --- a/java.html.markdown +++ b/java.html.markdown @@ -228,9 +228,9 @@ public class LearnJava { // The for loop is also able to iterate over arrays as well as objects // that implement the Iterable interface. int[] fooList = {1, 2, 3, 4, 5, 6, 7, 8, 9}; - // for each loop structure => for (<object> : <collection>) - // reads as: for each element in the collection - // note: the object type must match the element type of the collection. + // for each loop structure => for (<object> : <iterable>) + // reads as: for each element in the iterable + // note: the object type must match the element type of the iterable. for (int bar : fooList) { System.out.println(bar); |