Do....While loop Do while loop is similar to the while loop. The different thing is in while loop before executing the code check the condition. But in do while loop after executing the code check the condition. Basic Syntax:do { //statements } while(expression); Example:public class DoWhileLoop { public static void main(String args []) { int x=1; do { System.out.println(x); x++; }while(x<10); } }You can get the answer like this..