Java.io.PrintStream.append Sequence() 方法 Java.io.PipedWriter.connect() 方法 Java.io.PrintStream.append Subsequence() 方法 Java.io.PrintStream.append Sequence() 方法 package com.codingdict; import java.io.*; public class PrintStreamDemo { public static void main(String[] args) { String s = "Hello World. "; // create printstream object PrintStream ps = new PrintStream(System.out); // append our strings ps.append(s); ps.append("This is an example."); // print the result ps.flush(); ps.close(); } } Java.io.PipedWriter.connect() 方法 Java.io.PrintStream.append Subsequence() 方法