I have a problem while pasting my contents (or text) generated by Java code into excel. The problem is that my Java code generates a String with multiple lines, i.e. with li
Try this =)
String s1 = "this\r\nis a test"; String s2 = s1.replaceAll("(\\r|\\n)", ""); System.out.println(s2);