You can use hashmaps fine, just need to think about it and structure the program well for it.

It becomes clear once you do it a couple of times