I can't get this Console program to compile so I can run it. Will someone please tell me where my error is?
HTML:
import java.io.*;
class Add2Integers extends ConsoleProgram {
public void run() {
println("This program adds two numbers.");
int n1 = readInt("Enter n1: ");
int n2 = readInt("Enter n2: ");
int total = n1 + n2;
println("The total is " +total + ".");
}
}