Changes

Jump to navigation Jump to search
265 bytes added ,  17:33, December 2, 2008
do while
Line 28: Line 28:  
  }
 
  }
    +
Although a while loop won't run at all unless the condition is true, the do while loop is guaranteed to run at least once. It tests the condition at the end of each execution:
    +
do {
 +
 +
  queue.printStatus();
 +
  queue.processFirstItem();
 +
 +
} while (queue.hasItems());
    
[[Category:Computer Programming]]
 
[[Category:Computer Programming]]
Siteadmin, Check users, nsTeam1RO, nsTeam1RW, nsTeam1_talkRO, nsTeam1_talkRW, oversight, Administrators
30,650

edits

Navigation menu