This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
java:arrays [2016/02/22 09:17] gthanos [Πίνακες δύο διαστάσεων] |
java:arrays [2016/02/22 11:21] gthanos |
||
---|---|---|---|
Line 38: | Line 38: | ||
| | ||
for(int i=0; i < anArray.length; i++) { | for(int i=0; i < anArray.length; i++) { | ||
- | System.out.println("Element at index " + i + "/" + anArray.length+": " + anArray[0]); | + | System.out.println("Element at index " + i + "/" + anArray.length+": " + anArray[i]); |
} | } | ||
} | } |