Thread
Thread
class PrintTable
{
}
class Test1{
public static void main(String args[])
{
PrintTable p = new PrintTable();
MyThread t1 = new MyThread(p,2);
MyThread t2 = new MyThread(p,3);
t1.start();
t2.start();
}
}
Output:
Thread-0
Thread-1
3
6
9
2
4
6