Question

Specifically, with a SortedMap<Vector<String>, int> I get "dimensions expected after this (int) token." Help!

Was it helpful?

Solution

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).

OTHER TIPS

Konrad is correct. Alternately, you can use the trove class TObjectIntHashMap to map Objects to primitive ints.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top