public class CountDown { public static void countDown(int n) { //""" n >= 0, counts down to zero""" //for(init; test; between) //{ // BLOCK //} // 1. init runs when the loop is first seen // 2. test is evaluated. If true, block evaluates // 3. between evaluates // 4. test -> between -> block repeates until test is false // // init // while(test) // { // BLOCK // between // } for(/*init*/;n >= 0; n--) { System.out.println(n); } } public static void main(String [] args) { countDown(10); } }