(读写文件)下列程序完成了读取指定文件内容的功能,在下划线处应填入的代码是______。import java.io.*; public class test { public static String read (String FileName) throws Exception{ BufferedReader in = new BufferedReader(new FileReader(FileName)); String s = null; StringBuilder sb = new StringBuilder(); While((s=_____.readLine()) != null){ sb.append(s + “\n”); } _______.close(); return sb.toString(); } public static void main (String [] args) throws Exception{ System.out.println(read(“d:\\book.txt”)); } }
A、out, in
...
如果觉得《gui 设计的简单计算器 java 编写Java GUI程序 实现一个简单计算器。要求如下: (1)......》对你有帮助,请点赞、收藏,并留下你的观点哦!