The following code splits a String into individual words based on the regular expression argument. In this case “\\s” means 'space'.
String[] words = mySentence.split("\\s");
The following code splits a String into individual words based on the regular expression argument. In this case “\\s” means 'space'.
String[] words = mySentence.split("\\s");