Java.io.PrintStream.println() 方法 Java.io.PrintStream.println long() 方法 Java.io.PrintStream.println String() 方法 Java.io.PrintStream.println() 方法 package com.codingdict; import java.io.*; public class PrintStreamDemo { public static void main(String[] args) { Object c = 15; // create printstream object PrintStream ps = new PrintStream(System.out); // print an object and change line ps.println(c); ps.print("New Line"); // flush the stream ps.flush(); } } Java.io.PrintStream.println long() 方法 Java.io.PrintStream.println String() 方法