commons-lang
commons-lang copied to clipboard
LANG-1481 Add StringUtils.split() methods with String[] input.
Leveraging the existing split(string,separator) method, to split each element of input array
@RatishBansal I have just one small doubt, how do you plan to cover these cases mentioned here.
StringUtils.split(["a.b"],["c"], '.') = ["a", "b", "c"]
StringUtils.split(["a"],["b"],["c"], '.') = ["a", "b", "c"]
@RatishBansal I have just one small doubt, how do you plan to cover these cases mentioned here.
StringUtils.split(["a.b"],["c"], '.') = ["a", "b", "c"] StringUtils.split(["a"],["b"],["c"], '.') = ["a", "b", "c"]
@amarlearning as I mentioned in the comment as well, my understanding of the requirement is to write split method with String[] as input. I don't think the split method was meant to have varargs String[]. My understanding might be wrong, but I think the extra square brackets might be a mistake. I think @garydgregory would be the right person to clear the requirement.