Apex String split() results an empty list item even there is no value.
String test = ''; list<string> test1 = test.split(','); System.debug(test1.size()); // Result = 1
so I had my own method to omit empty list items. Is there a better function to do splitting and to omit empty ones.
Appreciate any help on this. Thanks.