Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

loops

  Asked By: Chisisi    Date: Jul 24    Category: Java    Views: 917
  

does anyone have good example of while loop , for loops

generateing random numbers between 1 and 10.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Jermaine Powell     Answered On: Jul 24

while( myBoolean == false ){
//do something
//should include a possibility where myBoolean gets set to true
}


for( i=0; i<10; i++) {
//do something
}

 
Didn't find what you were looking for? Find more on loops Or get search suggestion and latest updates.




Tagged: