日期:2014-05-20  浏览次数:20829 次

菜鸟java球运动求解啊
import acm.graphics.*;
import acm.program.*;
public class Practice extends GraphicsProgram {
private GOval ball;
public void run(){

GOval ball=new GOval(100,100);
add(ball,10,10);
while(true){
moveBall();

pause(50);


}
}


private void moveBall() {
// TODO Auto-generated method stub
ball.move(x,y);
}
private static final int x=10;
private static final int y=10;

}
求这个程序错误点。。。。

------解决方案--------------------
我会说我是来赚分的吗。。。