Dutch
1
Q:

boucle for avec un tableau java

int tab[] = {1,2,3,4};
for (int i : tab) {
  systeme.out.println(i); //fct to print with eclipse
}
//console : 
1
2
3
4
//same as
for (int i = 0; i++; i < tab.lenght) {
    systeme.out.println(i); //fct to print with eclipse
}
0

New to Communities?

Join the community