I get the error:
TestCounter.java:115: variable counters might not have been initialized counters[i] = new Counter(i);
You haven't created the array, you've just declared the variable.
You need to do this:
Counter[] counters = new Counter[30];
or something similar