import java.io.IOException; /** Driver.java for the cache simulation. * Pretty routine structure -- create a cache, run it on some input data, * and then print the final contents. * We also need to keep track of the hits and misses, but that is all * handled in the Cache class. */ public class Driver { public static void main(String [] args) throws IOException { Cache c = new Cache(); Program p = new Program (); c.run(p); // Print final contents of cache, as well as results. System.out.println(c); c.printResults(); } }