forked from ZeroAccess/CompleteJavaDevelopersCourse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
30 lines (26 loc) · 699 Bytes
/
Main.java
File metadata and controls
30 lines (26 loc) · 699 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
28
29
30
package While;
/**
* Created by robertsg on 11/20/2015.
*/
public class Main {
public static void main(String[] args) {
/* int count = 1;
while(count != 6) {
System.out.println("Count value is " + count);
count++;
}*/
/* int countTwo = 1;
while(true) {
if(countTwo == 6){
break;
}
System.out.println("Count value is " + countTwo);
countTwo++;
}*/
/* int countThree = 1;
do {
System.out.println("Count value was " + countThree);
countThree++;
} while(countThree != 6);*/
}
}