// Project: StaticMethods // No modules defined // Source code file Countdown.java // Print the count down sequence for a rocket launch. // The countDown method is static because it is called // from a class (not called from an object). public class CountDown { public static void countDown(int start) { for(int n = start; n >= 0; n--) { System.out.print(n + " "); } // Print a blank line. System.out.println( ); System.out.println("Blastoff."); } // Test the countDown method. public static void main(String[] args) { countDown(10); } }