Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Example of a Do..While Loop

public class Test {

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

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