java acm包,Java ACM包

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

解决方案

It appears that the previous link is dead. The files are still available at Eric Roberts' Stanford page.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值