For Loops
Lesson 21Author : 🦒
Last Updated : October, 2017
Video Code
for(int i = 0; i < 5; i++){
System.out.println(i);
}
int luckyNums[] = {4, 8, 15, 16, 23, 42};
for(int luckyNum : luckyNums){
System.out.println(luckyNum);
}
for(int i = 0; i < 5; i++){
System.out.println(i);
}
int luckyNums[] = {4, 8, 15, 16, 23, 42};
for(int luckyNum : luckyNums){
System.out.println(luckyNum);
}