// While.java -- Example "while" loop class WhileDemo { public static void main (String args[]) { int n = 11; while (--n > 0) { System.out.println ("tick " + n); } } }