Do not use “” as end of line in spite It is better to use system defined line separator.

Java Code:
String lineseperator=System.getProperty (“line.seperator”);