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