Specifically, with a SortedMap<Vector<String>, int>
I get "dimensions expected after this (int
) token." Help!
views:
771answers:
3
+9
A:
No, this is not possible. Use Integer
instead. Autoboxing takes care of the rest (i.e. for most purposes you can program as if you had actually used int
because Java converts to and from Integer
automatically for you).
Konrad Rudolph
2009-01-05 20:34:41
he was just after the badge
willcodejavaforfood
2009-01-06 16:30:25
@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.
Konrad Rudolph
2009-01-06 19:56:59
If not for the badge you would not have posted the question at all I suspect :)
willcodejavaforfood
2009-01-19 16:53:53
@willcode…: I have *not* posted the question. I've just corrected the formatting.
Konrad Rudolph
2009-01-19 18:37:26
He didn't ask the question, he just made some edits to it for readability ;)
Jason Coco
2009-01-05 21:04:29
A:
Konrad is correct. Alternately, you can use the trove class TObjectIntHashMap to map Objects to primitive ints.
Craig P. Motlin
2009-01-05 20:54:48