Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

loop while in java

while(i < 5) //while i < 5 stay in the loop
{
  System.out.print(i);
  i++;
}
/*
	do someting
	change variable
    call methods
    etc...
*/
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #loop #java
ADD COMMENT
Topic
Name
3+2 =