import java.lang.*;
import org.omg.CORBA.Current;
public class Demo2 {
public static void main(String[] args) {
Tiket ti = new Tiket();
Thread th1 = new Thread(ti);
Thread th2 = new Thread(ti);
Thread th3 = new Thread(ti);
Thread th4 = new Thread(ti);
th1.start();
th2.start();
th3.start();
th4.start();
}
}
class Tiket implements Runnable{
int ticket = 100;
public void run(){