Java examples for Language Basics:for
Counting backwards with for loop
public class CountDown { public static void main(String[] args) {//from w w w.j a v a 2 s. c o m for (int count = 10; count >= 1; count--) { System.out.println(count); } } }