Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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
}
 
PREVIOUS NEXT
Tagged: #boucle #avec #tableau #java
ADD COMMENT
Topic
Name
1+9 =