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


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

package com.codingdict;



import java.io.*;



public class PrintWriterDemo {



   public static void main(String[] args) {

      long l = 12345678910l;



      // create a new writer

      PrintWriter pw = new PrintWriter(System.out);



      // print long

      pw.println(l);

      pw.println(10987654321l);



      // flush the writer

      pw.flush();

   }

}