SyntaxFix
Write A Post
Hire A Developer
Questions
You could use result = result.replaceAll("\n",""); or
result = result.replaceAll("\n","");
String[] split = result.split("\n");