注意:此页面搜索的是所有试题
30. (问答题)
import java.awt.*;

import java.applet.Applet;

public class Applet1 extends Applet

{

public void paint( Graphics g )

{

g.drawLine( 30,5,100,45 );

g.drawRect( 30,50,50,20 );

g.drawOval( 30,80,50,40 );

g.drawString( "They are figures!" , 30,150 );

}

}



(本题8.0分)

参考答案