public class MinOppgave implements Runnable { private int id; private Teller fellesTeller; public MinOppgave(int id, Teller fellesTeller){ this.id = id; this.fellesTeller = fellesTeller; } @Override public void run(){ System.out.println("Tr?d " + id + " - STARTER"); for (int i = 0; i<1000; i++){ // ?ker telleren 1000 ganger fellesTeller.tellEn(); } System.out.println("Tr?d " + id + " - Teller er n? " + fellesTeller.antall); } }