Open main menu
Home
Random
Log in
Settings
About Conservapedia
Disclaimers
Conservapedia
Search
Changes
← Older edit
Newer edit →
Loop
(view source)
Revision as of 17:33, December 2, 2008
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]]
Ed Poor
Siteadmin,
Check users
, nsTeam1RO, nsTeam1RW, nsTeam1_talkRO, nsTeam1_talkRW, oversight,
Administrators
30,650
edits