问题描述
我正在Eclipse中编写一个java应用程序。我真的想使用ACM.Program包,但是我的Eclipse副本不没有安装!
我已经查看了整个网络,我找不到一个下载的ACM包。
更多信息:
每当我尝试代码:
package helloGeiodo;
import acm.program。*;
public class Add2 extends Program {
public void run(){
println(此程序添加两个数字);
int n1 = readInt(Enter n1:);
int n2 = readInt(Enter n2:);
int total = n1 + n2;
println(总数为+总+。);
}
}
我上下得到错误所有这些都意味着没有像acm.program这样的东西。
无论如何,我需要知道在哪里找到ACM包,以及如何安装它。
谢谢!
- Flynn
您可以从,然后。
似乎以前的链接已经死了。这些文件仍然可以在上获得。
I'm trying to write a java application in Eclipse.
I'm really wanting to use the ACM.Program package, however, my copy of Eclipse doesn't have it installed!
I've looked all over the net, and I can't find a single download for the ACM package.
More info:Whenever I try 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 the ying-yang, all implying that there is no such thing as "acm.program".
Anyways, I need to know where to find the ACM package, and, how to install it.
Thanks!
--Flynn
You can download acm.jar
from the ACM Java Task Force and then add it to your classpath.
It appears that the previous link is dead. The files are still available at Eric Roberts' Stanford page.
这篇关于Java ACM包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!