Java ACM Package

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

+5
source share
4 answers

acm.jar ACM Java Task Force, .

, . - .

+8

:

  • JAR
  • ( ) Eclipse. JAR lib, .
  • .

"ACM". , .

+4

, Assignment (.zip ) Java-.

+1

jtf.acm.org They let you download it there.

0
source

All Articles