Why does this need a toString method? You never seem to use/test it. At least you could use  Arrays.toString(this.countArray) instead of this long method.