do { command; } while (condition);
a do loop will run while a condition is false
package codereferececomjava; public class CodeRefereceComJava { public static void main(String[] args) { int i=4; do { i++; } while(i==4); System.out.println("i is :" + i ); } }
i is :5