主题:我真的很郁闷!!!!!!!
这段代码我怎么敲一行,错一行,我都快被她折磨死了![em6]
大家帮帮我吧![em11]
package mypkg;
/**
*
* @author Administrator
*/
import java.awt.Graphics.*;
import java.applet.Applet.*;
public class Graphics extends Applet{
{
public void paint(Graphics g){
g.drawGraphics();
g.fillGraphics(); }
}
public Graphics ()
{ }
class Point extends Graphics {
public void paint( Graphics g)
{
g.drawPoint(int x,int y);
}
super(int x,int y)
{
x=new x;
y=new y;
}
}
class Rects extends Graphics {
public void paint( Graphics g)
{
g.drawRects(int x1,int y1,int w,int h);
g.fillRects(int x1,int y1,int w,int h);
}
super(int x1,int y1,int w,int h)
{
x1=new x1;
y1=new y1;
w=new w;
h=new h;
}
}
public static void main(String[] args) {
// TODO code application logic here
}
}
这才编了两个类型,还有其他的都未编程呢?都够我头疼了,大家帮我看看吧[em11]
大家帮帮我吧![em11]
package mypkg;
/**
*
* @author Administrator
*/
import java.awt.Graphics.*;
import java.applet.Applet.*;
public class Graphics extends Applet{
{
public void paint(Graphics g){
g.drawGraphics();
g.fillGraphics(); }
}
public Graphics ()
{ }
class Point extends Graphics {
public void paint( Graphics g)
{
g.drawPoint(int x,int y);
}
super(int x,int y)
{
x=new x;
y=new y;
}
}
class Rects extends Graphics {
public void paint( Graphics g)
{
g.drawRects(int x1,int y1,int w,int h);
g.fillRects(int x1,int y1,int w,int h);
}
super(int x1,int y1,int w,int h)
{
x1=new x1;
y1=new y1;
w=new w;
h=new h;
}
}
public static void main(String[] args) {
// TODO code application logic here
}
}
这才编了两个类型,还有其他的都未编程呢?都够我头疼了,大家帮我看看吧[em11]