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