I'm using TTS in my app. I want to run a method when I ask for it. I created a Hashtable
where I want to store my methods like:
table.put("qqq", say("www"));
I'm comparing my data with keys - it works, but it does not trigger a method.
This probably isn't possible with Hashtable
, so please tell me how to do what I want in the simplest way