Answers for "boucle for avec un tableau java"

0

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
}
Posted by: Guest on September-29-2020

Code answers related to "boucle for avec un tableau java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language