import java.util.concurrent.CountDownLatch; class Konkurranse { public static void main(String[] args) { int antallTr?der = 10; CountDownLatch ferdig = new CountDownLatch(antallTr?der); Monitor monitor = new Monitor(); Thread[] tr?der = new Thread[antallTr?der]; for (int i = 0; i < antallTr?der; i++) { tr?der[i] = new Thread(new Deltaker(monitor, ferdig)); tr?der[i].start(); } System.out.println("St?rste tall: " + monitor.st?rsteTall()); } }