- DataInputStream in5 = new DataInputStream(new BufferedInputStream(new FileInputStream("Data.txt")));
- System.out.println(in5.readLine());
- System.out.println(in5.readDouble());
复制代码这段代码里DataInputStream.readLine过时,在功能不变的情况下怎么改?
如果用BufferedReader,它没有readDouble类似的方法呀?
|