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
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