I would like to create a hashmap with 2 keys. How would I go about doing this?
Let's say the hashmap instead of having 1 key to find a value needs 1 key and then uses the other key to narrow down the search to a certain type.
I need it to use a player that we give it. That would be key1. For key2 I need it to be a string for a type which could be something like "fly" or "speed" and then I need to get a value from those.
I would also not like to use more than 1 class for this job.
It would be nice if I could do HashMap but you can't do that directly.
I have already searched and I am still learning some java and still reading the oracle java handbook so keep that in mind because of I'm not sure if this is a stupid question or not.
Also, I have searched for an answer but I have tried looking into questions and answers of other users but that has not helped my problem.