/*
* File: Countdown.java
* ----------------------
* This program counts backwards from the value START
* to zero, as in the countdown preceding a rocket launch.
*/
import acm.program.*;
public class Countdown extends ConsoleProgram {
public void run () {
for (int t = START; t >= 0; t-- ); {
println(t);
}
println ("Liftoff!");
}
/* Specifies the value from which to start the countdown.*/
private static final int START = 10;
}
My problem is that the (t) in the following statement is not recognized as a variable:
println(t);