/**
   Hersteller-Thread
   @author Benedikt Großer, Holger Arndt
   @version 19.05.2003
*/
public class Hersteller implements Runnable
{ 
  private Korb derKorb; 

  public Hersteller(Korb derKorb) { this.derKorb = derKorb; } 

  public void run()
  {
    for (int i = 1; i <= 10; i++)
      { 
        derKorb.lege(i); 
        System.out.println("Hersteller legte " + i + " in den Korb."); 
        try { Thread.sleep((int)(Math.random() * 100)); }
	catch (InterruptedException e) {}
      }
  }
}
