List of usage examples for java.io PrintStream append
public PrintStream append(CharSequence csq, int start, int end)
From source file:Main.java
public static void main(String[] args) { CharSequence csq = "from java2s.com"; PrintStream ps = new PrintStream(System.out); // append our character sequences ps.append(csq, 6, 11); ps.append(csq, 0, 5);/* www . j a v a 2s . c om*/ // print the result ps.flush(); ps.close(); }