public class TraadSettInn implements Runnable { private int tall; private MonitorArray ma; public TraadSettInn(int tall, MonitorArray ma){ this.tall = tall; this.ma = ma; } @Override public void run(){ boolean ikkeFult = ma.settInn(tall); while(ikkeFult){ ikkeFult = ma.settInn(tall); } } }