Specifically, with a SortedMap<Vector<String>, int>
I get "dimensions expected after this ( int
) token." Help!
No, this is not possible. Use Integer
instead. Autoboxing takes care of the rest (ie for most purposes you can program as if you had actually used int
because Java converts to and from Integer
automatically for you).
Konrad is correct. Alternately, you can use the trove class TObjectIntHashMap to map Objects to primitive ints.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.