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
class Test { public static void main(String args[]) System.out.print("Hello\rHi"); }
Due to \r cursor moves to starting of the current line, so "He" of Hello is replaced by "Hi".