import java.util.List; public class AddereTraad implements Runnable{ private Monitor monitor; public AddereTraad(Monitor monitor){ this.monitor = monitor; } @Override public void run(){ List tall = monitor.hentTo(); while(tall != null){ System.out.println(tall.get(0) + " + " + tall.get(1) + " = " + tall.get(0) + tall.get(1)); tall = monitor.hentTo(); } } }