I've been pondering this assignment for several hours now. It won't leave me alone. The problem is I have no clue on how to approach this.
There are the obvious, newb ways of doing this. Create a 26 element 2D array, then just read back the values, skipping the empty/null elements. There is the brute force method of a switch statement wiht 36 cases and 36 counters. Hmm, maybe something like int myCounter and just increment the elements.
I'm sure there is a better way to approach this, but I'm not familiar enough with the language yet. I don't really understand the various collections -- hashmap, list array, etc.
Any hints on a possible approach that is a bit more elegant than my idiot example?
[This is not a class assignment. I' am merely intrigued by the problem.]
There are worse crimes than burning books. One of them is not reading them. Ray Bradbury