Easy question about breaking apart strings
Posted on 2005-05-03
In PHP there is a function to explode a string to where if there is white space it will break each word out into an array. How would I do that in java?
So say I have a string come in with "red condor fly" and I need to get "red" "condor" "fly" how would I get those three words seperated, or actually x number of words.