Hey there. I want to make a levelspecific Soundmap with a Hashtable.
Loading the Hashtable is no problem.
The Hashmap(SoundLibrary) is built like this:
Key “PISTOL”
Value “Sound/pistol.wav”
I have a problem with returning the Value of the Key.
The Hashtable returns null with get(“PISTOL”);. But System.out.println(SoundLibrary); prints {“PISTOL” = “Sound/pistol.wav”}
Any Suggestions how to solve this?