Specifically, with a SortedMap, int> I get \"dimensions expected after this (int) token.\" Help!
SortedMap, int>
int
Konrad is correct. Alternately, you can use the trove class TObjectIntHashMap to map Objects to primitive ints.