class FyllPaa implements Runnable { BrusMaskin bm; public FyllPaa(BrusMaskin bm){ this.bm = bm; } public void run(){ for(int i = 0; i < 10; i++){ bm.fyllBrus(); } } }