Java tutorial
import java.io.*; public class Main { public static void main(String[] args) { String s = "from java2s.com"; PrintWriter pw = new PrintWriter(System.out); // print string pw.print(s); // change the line twice pw.println(); pw.println(); // print another string pw.print("Two lines."); // flush the writer pw.flush(); } }