package etc; import java.io.*; import jds.util.StringCompare; class hashExperiment { static public void main (String [ ] args) { int m = ...; // module int[] statistics = new int[m]; int hashValue; try { // step 1. first read the input FileReader fin = new FileReader(args[0]); BufferedReader in = new BufferedReader(fin); String line = in.readLine(); int lineNo = 0; System.out.println("The Hashvalues (lineNo, Hash value)"); while (line != null) { hashValue = hash (line, m); System.out.print(lineNo +": "+ hashValue+"; "); .... line = in.readLine(); } } catch (IOException e) { System.out.println("received IO Exception " + e); } System.out.println(); System.out.println("Statistics: Number of trials collisions "); .... } static int hash(String s, int m){....} }