关于java的算法IO读写优化
1.普通写法
1 | Scanner sc = new Scanner(System.in); |
2.读取测试文件
1 | Scanner sc = new Scanner(new FileInputStream("path")); |
3.bufferReader加速读写
1 | BufferedReader bf = new BufferedReader(new InputStreamReader(new FileInputStream("path"))); |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Kid1999' Blog!