Java.io.PrintWriter.append Sequence() 方法 Java.io.PrintWriter.append() 方法 Java.io.PrintWriter.append Subsequence() 方法 Java.io.PrintWriter.append Sequence() 方法 package com.codingdict; import java.io.*; public class PrintWriterDemo { public static void main(String[] args) { CharSequence sq1 = "Hello"; CharSequence sq2 = " World"; // create a new stream at system PrintWriter pw = new PrintWriter(System.out); // append the sequence pw.append(sq1); pw.append(sq2); // flush the writer pw.flush(); } } Java.io.PrintWriter.append() 方法 Java.io.PrintWriter.append Subsequence() 方法