当前位置: 技术问答>java相关
这个程序哪里错了,怎么提示18个错?倒……
来源: 互联网 发布时间:2015-01-29
本文导语: import java.applet.*; import java.awt.*; public class ko9_2 extends Applet { public void paint(Graphics g) { for (int m=0; m=0; n-=10) { g.drawRect(n,m,50,40); } } g.setColor(Color. green...
import java.applet.*;
import java.awt.*;
public class ko9_2 extends Applet
{
public void paint(Graphics g)
{
for (int m=0; m=0; n-=10)
{
g.drawRect(n,m,50,40);
}
}
g.setColor(Color. green);
g.fillRect(20,20,70,60);
g.clearRect(30,30,50,40);
g.setColor(Color. black);
g.drawString("drawRect & fillRect",60,110);
g.setColor(Color. red);
g.setClip(130,20,60,50);
g.fillRect(140,20,70,60);
}
}
import java.awt.*;
public class ko9_2 extends Applet
{
public void paint(Graphics g)
{
for (int m=0; m=0; n-=10)
{
g.drawRect(n,m,50,40);
}
}
g.setColor(Color. green);
g.fillRect(20,20,70,60);
g.clearRect(30,30,50,40);
g.setColor(Color. black);
g.drawString("drawRect & fillRect",60,110);
g.setColor(Color. red);
g.setClip(130,20,60,50);
g.fillRect(140,20,70,60);
}
}
|
for (int m=0; m这里少了一个{
for (int n=80; n>=0; n-=10)
{
g.drawRect(n,m,50,40);
}
}
别忘给分哦...
for (int n=80; n>=0; n-=10)
{
g.drawRect(n,m,50,40);
}
}
别忘给分哦...
|
天那,
怎么这种错都会有,
这种分都能拿,好合算。
怎么这种错都会有,
这种分都能拿,好合算。
|
import java.applet.*;
import java.awt.*;
public class ko9_2 extends Applet{
public void paint(Graphics g){
for (int m=0; m=0; n-=10){
g.drawRect(n,m,50,40);
}
}
g.setColor(Color. green);
g.fillRect(20,20,70,60);
g.clearRect(30,30,50,40);
g.setColor(Color. black);
g.drawString("drawRect & fillRect",60,110);
g.setColor(Color. red);
g.setClip(130,20,60,50);
g.fillRect(140,20,70,60);
}
}
import java.awt.*;
public class ko9_2 extends Applet{
public void paint(Graphics g){
for (int m=0; m=0; n-=10){
g.drawRect(n,m,50,40);
}
}
g.setColor(Color. green);
g.fillRect(20,20,70,60);
g.clearRect(30,30,50,40);
g.setColor(Color. black);
g.drawString("drawRect & fillRect",60,110);
g.setColor(Color. red);
g.setClip(130,20,60,50);
g.fillRect(140,20,70,60);
}
}