I am trying to write a Java application in Eclipse.
I really want to use the ACM.Program package, however my copy of Eclipse is not installed!
I scanned the entire network and I cannot find any downloads for the ACM package.
Additional info: Whenever I try to execute the code:
package helloGeiodo;
import acm.program.*;
public class Add2 extends Program {
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 + ".");
}
}
I get errors up and down ying-yang, all implying that there is no such thing as "acm.program".
In any case, I need to know where to find the ACM package, and how to install it.
Thank!
- Flynn
source
share