Using TreeMap to auto-sort. This is basically the way I did the earlier tasks where you count letters and spaces. I waited until the print statement to cast into a character in case that messed up the TreeMap sorting since I don't know how that works. Why is it that every task here now makes me want to quit learning Java? The output looks right, except that I'm counting new lines and carriage returns, as well as spaces, and I don't know if that stuff is making it fail validation, or what's going on.