I am trying to build a HashMap which will have integer as keys and objects as values.
My syntax is:
HashMap myMap = new HashMap&
If you code in Android, there is SparseArray, mapping integer to object.