class Kaffedrikker implements Runnable{ private Bord bord; private int id; public Kaffedrikker(Bord bord, int id){ this.bord = bord; this.id = id; } public void run(){ int antall = 0; String kaffe = bord.hentKaffe(); while(! kaffe.equals("tomt")){ System.out.println("Kaffedrikker " + id + ": drikker en " + kaffe); antall++; kaffe = bord.hentKaffe(); } System.out.println("Kaffedriker " + id + ": drakk " + antall + " kopper kaffe"); } }