Advertisement
virtualideaz

While Statement example

Oct 22nd, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1. //
  2. //this is a repitition statement
  3. //
  4. public class RepititionStatements {
  5.         public static void main(String [] args) {
  6.                 //this is a while loop
  7.                
  8.                 int x = 1;
  9.                        
  10.                while (x < 10);
  11.                {
  12.                 System.out.println("value of x : " + x);
  13.                 x++;
  14.                }
  15.         }
  16. }
  17.  
  18. --copy until here--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement