01: // Copyright (c) 2002-2005 Cunningham & Cunningham, Inc.
02: // Released under the terms of the GNU General Public License version 2 or later.
03:
04: package fit;
05:
06: public class Counts {
07: public int right = 0;
08: public int wrong = 0;
09: public int ignores = 0;
10: public int exceptions = 0;
11:
12: public String toString() {
13: return right + " right, " + wrong + " wrong, " + ignores
14: + " ignored, " + exceptions + " exceptions";
15: }
16:
17: public void tally(Counts source) {
18: right += source.right;
19: wrong += source.wrong;
20: ignores += source.ignores;
21: exceptions += source.exceptions;
22: }
23: }
|