HI Everyone. I\'m sorry for this embarrassingly newbie question but I cannot seem to figure out the command to do it. I\'m okay with python and had a script in jython that I
Please take a look at String.split method
I think you are looking for String.split.
String s = "Java is really cool";
String words[] = s.split(" ");
String firstTwo = words[0] + " " + words[1]; // first two words
String lastTwo = words[words.length - 2] + " "
+ words[words.length - 1]; // last two words
String foo = "java is really cool";
String bar[] = foo.split(" ");
this will separate all of the words into an array.