I am writing an application that relies heavily on separating large strings into individual words. Because I have to deal with so many strings I am concerned about efficiency. I am using String.split to do this but I do not know if there is a more efficient way to accomplish this.
private static String[] printWords(String input) {
String splitWords[] = input.split(" ");
return splitWords;
}