Shop-Simulation (II)

public static void main(String[] args) {
  Clerk bäcker = new Clerk ();
  for (int i=0; i<3; i++) {
    Customer c = new Customer
      (Integer.toString(i), bäcker, 10);
    new Thread(c).start();
} }
public static void abwarten() {
  int d = (int) Math.random () * 1000;
  Thread.sleep(d);
}



Johannes Waldmann 2007-01-23