I need to print a string using java so I fond the following solution After googled a lot. I have done some changes to print the string without showing the print dialog. My p
String newline = System.getProperty("line.separator"); System.out.println("First line" + newline); System.out.println("Second line" + newline); System.out.println("Third line");