Java ACM包 [英] Java ACM package

查看:220
本文介绍了Java ACM包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在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

解决方案

您可以从 acm.jar rel =nofollow> ACM Java Task Force ,然后将其添加到您的类路径



似乎以前的链接已经死了。这些文件仍然可以在 Eric Roberts的斯坦福大学网页上获得。


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包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆