public static void main(String[] args) throws IOException, ClassNotFoundException {
   Validator[] validators = {new ValidatorImpl()};
   CorrectnessTest.check(validators);
   String[][] data = {
     readData("dataset1.dat"), readData("dataset2.dat"), readData("dataset3.dat")
   };
   for (Validator val : validators) {
     System.out.println(val.getClass().getSimpleName());
     System.out.println(val.getClass().getSimpleName().replaceAll(".", "="));
     System.out.println(
         "Dataset1 Count\tDataset1 Time\tDataset2 Count"
             + "\tDataset2 Time\tDataset3 Count\tDataset3 Time");
     for (int i = 0; i < DATA_POINTS; i++) {
       test(val, data);
     }
   }
 }
  private static void test(Validator val, String[] dataset)
      throws IOException, ClassNotFoundException {
    Benchmark mbm = new Benchmark();
    mbm.start();

    int truecount = 0;
    for (int i = 0; i < REPEATS; i++) {
      truecount = 0;
      for (String s : dataset) {
        if (val.checkInteger(s)) truecount++;
      }
    }

    mbm.stop();
    System.out.printf("%d\t%s", truecount, mbm);
  }