User Tools

Site Tools


java:loops:while

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

java:loops:while [2013/04/11 08:43]
188.102.46.48 created
java:loops:while [2024/02/16 01:04] (current)
Line 8: Line 8:
 </code> </code>
  
-a while loop do something while condition is false+a while loop do something while condition
  
 ===== example of while loop in java ===== ===== example of while loop in java =====
Line 17: Line 17:
    
     public static void main(String[] args) {     public static void main(String[] args) {
-        // TODO code application logic here+
         int i=4;         int i=4;
 +              
 +        while(i==4) {
                  
-        do { +             i++; 
-         i++; +         
-        while(i==4); +         
-        +
         System.out.println("i is :" + i );         System.out.println("i is :" + i );
     }     }

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
java/loops/while.1365662638.txt · Last modified: 2024/02/16 01:02 (external edit)

Impressum Datenschutz