Check out the signature of your method; it is returning an array of ints.
ts.getCharTimes(file) returns int array. So to print use:
ts.getCharTimes(file)[letter]
You are also running the method 26 times, which is likely to be wrong. Since the call context (parameters and such) is not affected by the iterations of the loop consider changing the code to:
int[] letterCount = ts.getCharTimes(file);
for(int letter = 0; letter < 26; letter++) {
System.out.print((char) (letter + 'a'));
System.out.println(": " + letterCount[letter]);
}
Jacob
2010-03-31 23:25:19