下列Applet使用drawLine()方法绘制矩形,左上角坐标为(20,40),长为60,宽为 40。请选择正确的语句填入横线处。 import java.awt.*; import java.applet.*; public class ex32 extends Applet { public void paint(Graphics g) { g.setColor(Color.blue); g.drawLine(20, 40, 80, 40); ______ g.drawLine(20, 80, 80, 80); g.drawLine(20, 80, 20, 40); } }
A. g.drawLme(80, 40, 80, 80);
B. drawLine(40, 40, 80, 80);
C. g.drawLine(80, 20, 80, 80);
D. drawLine(80, 40, 80, 80);