线程问题
class Example6_1 {
public static void main (String [] args){
innThread mt = new innThread ();
mt.start ();
for (int i = 0; i < 50; i++)
System.out.println ("i = " + i);
}
}
//通过继承Thread实现线程
class innThread extends Thread
{
public void run ()
{
for (int count = 1, row = 1; row < 20; row++, count++)
{
for (int i = 0; i < count; i++)
System.out.print ('*');
System.out.print ('\n');
}
}
}
线程重 mt.start ();开始,请问哪里结束还有就是row起到什么作用