Jack Fletcher wrote:
I would like to be able to sum the values mapped to letters of lower case e.g. 'a' to their uppcase counterparts 'A' then display the totals for each.
My understanding is that the .get() function can be used by takin the Character as a key e.g. map.get("A").
I've been toying around with this for a while now and am getting nowhere so any help in the right direction would be greatly appreciated!
How about you do this. Write down the steps to accomplish the above in plain English first.
Then write down what each of those steps mean in
Java.
Turn it into one/more methods.
Question - What is the current code doing? What does the get method do?
Question and/or a suggestion - Why a TreeMap? Why not a HashMap?
Chan
Edit : Ninja'd :-)