-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforLoops.java
More file actions
27 lines (26 loc) · 853 Bytes
/
Copy pathforLoops.java
File metadata and controls
27 lines (26 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
public class forLoops {
public static void main(String[] args) {
System.out.println("DOES THIS WORK?");
for(int i=0; i<4; i++){
System.out.println("This will repeat 4 times ... hopefully!");
if(i==2){
System.out.println("Here is something in-between!!!");
}
}
for(int a=0; a<4; a++){
System.out.println("Now this will repeat 4 times... probably!!!");
}
for(int s=0; s<4; s++){
System.out.println("HELP!!!");
for(int j=0; j<4; j++){
System.out.println("Can't forget about nested loops! This will repeat a bunch times");
for(int k=0; k<4; k++){
System.out.println("I hope you like this sentence, it'll appear a lot!!!");
if(k==2){
System.out.println("Don't worry you're almost done!!!");
}
}
}
}
}
}