This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | Next revision Both sides next revision | ||
|
java:loop_statements [2015/09/18 10:52] gthanos [For statement] |
java:loop_statements [2016/02/18 12:12] doufexi added comment in code example, added navigation links |
||
|---|---|---|---|
| Line 49: | Line 49: | ||
| public static void main(String[] args){ | public static void main(String[] args){ | ||
| int[] numbers = {1, | int[] numbers = {1, | ||
| - | for (int item : numbers) { | + | for (int item : numbers) { // for every item in numbers array |
| System.out.println(" | System.out.println(" | ||
| } | } | ||
| Line 55: | Line 55: | ||
| } | } | ||
| </ | </ | ||
| + | |||
| + | | Προηγούμενο: | ||
| + | Εντολές τερματισμού και ελέγχου της ανακύκλωσης ]] | | ||