Can StringUtils.split function in java return an empty string for input other than an empty string ?
StringUtils.split() returns an empty string?
1.5k views Asked by user1484793 At
2
Can StringUtils.split function in java return an empty string for input other than an empty string ?
According to Doc, NO. Only a
nullinput string will returnnull.There are three versions of
StringUtils.split():Splits the provided text into an array, using whitespace as the separator
Splits the provided text into an array, separator specified. This is an alternative to using StringTokenizer.
Splits the provided text into an array, separators specified. This is an alternative to using StringTokenizer.