String newLine = System.getProperty(“line.separator”);//This will retrieve line separator dependent on OS.
System.out.println(“line 1” + newLine + “line2”);
System.out.println(“hello”+”n”+”world”);
by James Palmer
String newLine = System.getProperty(“line.separator”);//This will retrieve line separator dependent on OS.
System.out.println(“line 1” + newLine + “line2”);
System.out.println(“hello”+”n”+”world”);