class DoWhileExample { public static void main(String[] args) { int count = 0; do { System.out.print(count); System.out.print(" "); count++; } while ( count < 5 ); } }