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

subWords method2

By: ace on Jun 2nd, 2010  |  syntax: None  |  size: 0.58 KB  |  hits: 15  |  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 subWords(String string, ArrayList<String> nouns, ArrayList<String> verbs,
  2. ArrayList <String> adjs)
  3. {
  4. int index = 0;
  5.     if (string.equals("noun"))
  6.     {
  7.            System.out.println("string" + subNoun(string, nouns));
  8.             return subNoun(string, nouns);
  9.         }  
  10.  
  11.     if (string.equals("verb"))
  12.     {
  13.         return subVerb(string, verbs);
  14.     }
  15.    
  16.           if(string.equals("adjective"))
  17.           {
  18.                         return subAdj(string, adjs);
  19.                     }
  20.                
  21.                     return string;
  22.                 }