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


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

package com.codingdict;



import java.io.*;



public class PrintWriterDemo {



   public static void main(String[] args) {

      long i = 4854587375487354l;



      // create a new writer

      PrintWriter pw = new PrintWriter(System.out);



      // print long

      pw.print(i);



      // change the line

      pw.println();



      // print another long

      pw.print(12315436474l);



      // flush the writer

      pw.flush();

   }

}