Closed BeginnerRudy closed 6 years ago
Eleanor said: Try using instanceof. You cannot have heterogeneous (multi-typed) HashMaps, but Java has other ways to deal with this situation.
Sloved by down cast each to Sprite to specific subclass in order to invoke method
I want a hashMap with key to be String and the Value be the ArrayList of the subclass of Sprite.