1 // Copyright (c) 2002-2005 Cunningham & Cunningham, Inc. 2 // Released under the terms of the GNU General Public License version 2 or later. 3 4 package fit; 5 6 public class Counts { 7 public int right = 0; 8 public int wrong = 0; 9 public int ignores = 0; 10 public int exceptions = 0; 11 12 public String toString() { 13 return 14 right + " right, " + 15 wrong + " wrong, " + 16 ignores + " ignored, " + 17 exceptions + " exceptions"; 18 } 19 20 public void tally(Counts source) { 21 right += source.right; 22 wrong += source.wrong; 23 ignores += source.ignores; 24 exceptions += source.exceptions; 25 } 26 }