When you are working with any data sources, there might be cases where there are multiple empty lines for a particular record or column, In such case you can remove such lines by simply using the custom java codes.
Example:
String s = "Hello \n+
"\n Hi"+
"\n";
s.replaceAll("\n|\r[ \t|\r]*\n", " ");
,this will do the required job for you.
Comments
Post a Comment