高分求大神解释,我是菜鸟
public class root27 extends Thread {
root27(){}//这地方为什么要写一个空的构造方法????????
root27(String sname)
{
super(sname);
}
public void run()
{
for(int count=1,row=1;row<10;row++,count++)
{
for(int i=0;i<count;i++)
{
System.out.print('*');
}
System.out.println();
}
}
public static void main(String args[])
{
root27 a = new root27();
root27 b = new root27();
root27 c = new root27();
a.start();
b.start();
c.start();
}
}