Java tutorial
import java.io.*; public class Main { public static void main(String[] args) { String c = "from java2s.com"; PrintStream ps = new PrintStream(System.out); // print a string and change line ps.println(c); ps.print("from java2s.com"); // flush the stream ps.flush(); } }