import java.util.Iterator; public class Hovedprogram { public static void main(String args[]){ String monster = args[0]; Iterator iterator = alleFlyvninger(); MistenkeligePersoner monitor = new MistenkeligePersoner(); while(iterator.hasNext()){ Flyvning flyvning = iterator.next(); Thread traad = new Thread(new Forstelinjevokter(flyvning, monitor,monster)); traad.start(); } for(int i = 0; i < 100; i++){ Thread traad = new Thread(new Andrelinjevokter(monitor)); traad.start(); } } }