// file: Proj2.java // Example // Ibrahim Matta, Sep 28, 1999 // For use with the file Person.java, in this directory, // and the other .java and .class files of Project2 // Try this out by doing: // java Proj2 2 10 2 10 import java.util.*; class Proj2 { final static String usage = "Usage: java Proj2 #bridges #capacity #verbosity #personCount"; public static void main(String argv[]) throws Exception { if( argv.length != 4 ) { throw new Exception( usage ); } int bridges = Integer.parseInt(argv[0]); int capacity = Integer.parseInt(argv[1]); Bridges stonyBrook = new Bridges(bridges, capacity); stonyBrook.verbose( Integer.parseInt( argv[2] )); int personCount = Integer.parseInt(argv[3]); stonyBrook.runSimulation(true, personCount); } }