Executes body at least once
Section: While / do-while
do-while loop
java
java
do {\n // ...\n} while (condition);Explanation
do-while always executes the body at least once.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing While / do-while