java string extract words

Solutions on MaxInterview for java string extract words by the best coders in the world

showing results for - "java string extract words"
Noé
27 Jan 2016
1String test = "My first arg test";
2String[] words = test.split(" ");
3
4for (String word : words) System.out.println(word);