Right now I am using
StringUtils.split(String str, char separatorChar) to split input string with specified separator (,).
Example input data:
a,f,h Output
String[] { "a", "f", "h" } But with following input:
a,,h It returns just
String[] { "a", "h" } What I need is just empty string object:
String[] { "a", "", "h" } How can I achieve this?