/* main entry point for the simulation */ public class Sim{ public static void main(String[] args){ //number of iterations... we could prompt the user instead int max = 1000; //create a traffic pattern Generator g = new Generator(); //instantiate an intersection using that traffic pattern Intersection i = new Intersection(max, g); //start the simulation i.run(); //display the statistics i.printStats(); } }