- public String generateResponse(HashSet<String> words)
- {
- Iterator<String> it = words.iterator();
- while(it.hasNext()) {
- String word = it.next();
- if(String word.contains() = responseMap.containsKey())
- {
- String response = responseMap.get(word);
- if(response != null) {
- return response;
- }
- }
- }