how does the while loop work in java code example Example: do while loop in java do { ... } while(condition);