Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to use while loop in java

int count = 10;
while(count < 10) {
  	System.out.println(count);
  	count++;
}

//while will run when if the condition is true
//if count is less then 10 the condition is true
//if count is more then 10 or equals to 10 it is false.
Source by www.javatpoint.com #
 
PREVIOUS NEXT
Tagged: #loop #java
ADD COMMENT
Topic
Name
3+2 =