Skip to content

Commit 2931c59

Browse files
Control Statment in java
While loop
1 parent 7d04231 commit 2931c59

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Basics/ControlStatment/WhileLoop.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
public class WhileExample2 {
2+
public static void main(String[] args) {
3+
// setting the infinite while loop by passing true to the condition
4+
while(true){
5+
System.out.println("infinitive while loop");
6+
}
7+
}
8+
}
9+
10+

0 commit comments

Comments
 (0)