A generic do-while loop
public class DoWhileLoop { public static void main(String[] args) { boolean condition = true; do { // code that will repeat goes here } while (condition == true); } }