Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

stringkeytest1

By: ace on Feb 6th, 2010  |  syntax: None  |  size: 0.41 KB  |  hits: 25  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public String generateResponse(HashSet<String> words)
  2.     {
  3.         Iterator<String> it = words.iterator();
  4.         while(it.hasNext()) {
  5.             String word = it.next();
  6.            if(String word.contains() = responseMap.containsKey())
  7.            {
  8.             String response = responseMap.get(word);
  9.             if(response != null) {
  10.                 return response;
  11.             }
  12.         }
  13.         }