Loading

摘要: 文件创建与删除 创建目录或文件 createNewFile() 需要文件目录已存在 public class IO { public static void main(String args[]) { String dirname = "D:\\java\\temp.txt"; File d = n 阅读全文
posted @ 2019-02-19 17:11 李帆1998 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 读取控制台输入 从控制台读取一行数据,返回值字符串 public class IO { public static void main(String args[]) throws IOException { // 使用 System.in 创建 BufferedReader BufferedRead 阅读全文
posted @ 2019-02-19 15:17 李帆1998 阅读(6070) 评论(0) 推荐(0) 编辑