applet 输出问题
import java.applet.*;import java.awt.*;
public class ex71 extends Applet
char name,tel;
int age;
public class smp
{
String name="evenice";
int age=18;
String tel="12345678";
}
public void paint(Graphics g)
{
g.drawString("name="+name,20,80);
g.drawString("age="+age,20,100);
g.drawString("tel="+tel,20,120);
}
public void init()
{
Applet smp=new Applet();
}
} 为什么输出没有结果