Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Example of While Loop

public class Test {

   public static void main(String args[]) {
      int x = 10;

      while( x < 20 ) {
         System.out.print("value of x : " + x );
         x++;
         System.out.print("
");
      }
   }
}
Source by sites.google.com #
 
PREVIOUS NEXT
Tagged: #Example #While #Loop
ADD COMMENT
Topic
Name
7+5 =