while loop java 365 code example Example 1: do statement java do { statement(s); } while(condition); Example 2: do statement java 10 9 8 7 6 5 4 3 2