Originally posted by Julian Kennedy:
The reason for this is that TreeMap.put() takes two Objects as parameters. As you probably know, int is a primitive type, not an Object. So you need to use the wrapper class, Integer.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton