java:loop_statements

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
java:loop_statements [2015/09/18 10:51]
gthanos [For statement]
java:loop_statements [2015/09/18 10:52]
gthanos [For statement]
Line 36: Line 36:
   public static void main(String[] args){   public static void main(String[] args){
     int[] numbers = {1,2,3,4,5,6,7,8,9,10};     int[] numbers = {1,2,3,4,5,6,7,8,9,10};
-    for (int i; i<numbers.length;i++) {+    for (int i=0; i<numbers.length;i++) {
       System.out.println("Count is: " + numbers[i]);       System.out.println("Count is: " + numbers[i]);
     }     }
java/loop_statements.txt · Last modified: 2017/02/16 08:08 by gthanos