问题详情
以下代码完成画线功能,所画线的颜色是()。 (1)g.setColor(Color.red.green.cyan.yellow); (2)g.drawLine(0,0,100,100):
A.red
B.green
C.yellow
D.cyan
请帮忙给出正确答案和分析,谢谢!