Hi Guys, Need help with an Assignment.
I need to create a HashMap, then use it to be able to call methods.
For example:
//Maps Key words to responses
private HashMap<String, String> mapResponder;
//Constructor
mapResponder = new HashMap<String, String>();
fillResponseMap();
/**
* List of the responders
*/
private void fillResponseMap()
{
mapResponder.put ("cold",
"I WANT TO LINK THIS TO A METHOD");
mapResponder.put ("circle",
"I WANT TO LINK THIS TO CALL A METHOD");
}