|
@@ -75,7 +75,7 @@ public class StringUtilities {
|
75
|
75
|
* @return the first sequence of characters
|
76
|
76
|
*/
|
77
|
77
|
public static String getFirstWord(String spaceDelimitedString){
|
78
|
|
- String [] newStringArray = spaceDelimitedString.split(" ");
|
|
78
|
+ String [] newStringArray = spaceDelimitedString.split(" ", 0);
|
79
|
79
|
return newStringArray[0];
|
80
|
80
|
}
|
81
|
81
|
|
|
@@ -84,7 +84,7 @@ public class StringUtilities {
|
84
|
84
|
* @return the second word of a string delimited by spaces.
|
85
|
85
|
*/
|
86
|
86
|
public static String getSecondWord(String spaceDelimitedString){
|
87
|
|
- String [] newStrArr = spaceDelimitedString.split(" ");
|
|
87
|
+ String [] newStrArr = spaceDelimitedString.split(" ", 0);
|
88
|
88
|
return newStrArr[1];
|
89
|
89
|
}
|
90
|
90
|
|