Java.io.PrintStream.print long() 方法


Java.io.PrintStream.print long() 方法

package com.codingdict;



import java.io.*;



public class PrintStreamDemo {



   public static void main(String[] args) {

      long x = 50000000000l;



      try {



         // create printstream object

         PrintStream ps = new PrintStream(System.out);



         // print long

         ps.print(x);



         // flush the stream

         ps.flush();



      } catch (Exception ex) {

         ex.printStackTrace();

      }

   }

}