When I split a string with multiple commas at end, they are ignored in array. Is it correct ?
String a = "a,b,c,,f,,";
String[] sdf = a.split(",");
for (int i = 0; i < sdf.length; i++) {
System.out.println(sdf[i]);
}
Or am I missing something.
Output I am getting is
[a,b,c, ,f]
I want to take those blank values into consideration, expecting something like this
[a,b,c, ,f, ,]