package jinjieshilie; import java.io.*; public class printliu { public static void main(String[] args) throws IOException { DataOutputStream sjl=new DataOutputStream(new FileOutputStream("e:/1.txt"));//电脑识别的二进制 sjl.writeLong(12345); sjl.close(); System.out.println(12345); System.out.printf("%#X ",12345); PrintStream pl=new PrintStream(new FileOutputStream("e:/2.txt"));//认识别的字符 pl.println(12345); pl.close(); } }