Specifically, with a SortedMap<Vector<String>, int> I get "dimensions expected after this (int) token." Help!
From stackoverflow
-
No, this is not possible. Use
Integerinstead. Autoboxing takes care of the rest (i.e. for most purposes you can program as if you had actually usedintbecause Java converts to and fromIntegerautomatically for you).willcodejavaforfood : he was just after the badgeKonrad Rudolph : @willcode…: You figured me out. :-/ If not for the badge, I would have given a wrong, thoroughly misleading answer that would have led the OP on a merry goose chase through the internet. Now, quick, get off the Internet. It's dangerous out here.willcodejavaforfood : If not for the badge you would not have posted the question at all I suspect :)Konrad Rudolph : @willcode…: I have *not* posted the question. I've just corrected the formatting. -
If you knew that why did you ask the question? :)
Jason Coco : He didn't ask the question, he just made some edits to it for readability ;)willcodejavaforfood : @Jason - OK that makes more sense :) -
Konrad is correct. Alternately, you can use the trove class TObjectIntHashMap to map Objects to primitive ints.
0 comments:
Post a Comment