class Ticket extends Thread
{
static int x;
public void run()
{
for (x = 100;x>0 ;x-- )
{
System.out.println(this.getName()+"sale....."+x);
}
}
}
class TicketDemo
{
public static void main(String[] args)
{
Ticket t1 = new Ticket();
Ticket t2 = new Ticket();
Ticket t3 = new Ticket();
Ticket t4 = new Ticket();
t4.start();
t1.start();
t2.start();
t3.start();