For Loops
Lesson 21Author : GOUP
Last Updated : September, 2020
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);
}