public class Hovedprogram { private static final int ANTALL_TELLE_TRAADER = 10; public static void main(String[] args) { Monitor monitor = new Monitor(ANTALL_TELLE_TRAADER); for(int i = 0; i < ANTALL_TELLE_TRAADER; i++){ new Thread(new TelleTraad(i, monitor)).start(); } for(int i = 0; i < 2; i++){ new Thread(new AddereTraad(monitor)).start(); } } }