import java.awt.Graphics;
class HelloWorld extends java.applet.Applet
{
public void paint (Graphics g)
{
g.drawString("你好",10,10);
}
}
怎么画这个的类图哦?
是不是没顺序时序图?
------解决方案--------------------
- Java code
┌------------------┐ | HelloWorld | ├------------------┤ | | ├------------------┤ |+paint(Graphics g) | └------------------┘ | | | ▽ ┌-------------------┐ |java.applet.Applet | └-------------------┘