摘要: import java.io.File; //删除文件 public class FileDemo4 { public static void main(String[] args) { //1.删除文件 File file = new File("E:\\Workpace\\java.txt"); 阅读全文
posted @ 2021-04-30 23:19 code-G 阅读(418) 评论(0) 推荐(0) 编辑
摘要: import java.io.File; //File类判断和获取功能 public class FileDemo3 { public static void main(String[] args) { File file = new File("E:\\Workpace\\java.txt"); 阅读全文
posted @ 2021-04-30 23:10 code-G 阅读(201) 评论(0) 推荐(0) 编辑
摘要: import java.io.File; import java.io.IOException; public class FileDemo2 { public static void main(String[] args) throws IOException { //1.创建文件 File fi 阅读全文
posted @ 2021-04-30 22:54 code-G 阅读(488) 评论(0) 推荐(0) 编辑
摘要: StringBuilder的方法有 reverse append StringBuilder转换为String StringBuilder.toString() String转换为StringBuilder new StringBuilder(String s) 阅读全文
posted @ 2021-04-30 22:34 code-G 阅读(39) 评论(0) 推荐(0) 编辑
摘要: == 比较两者地址 equals方法比较内容 阅读全文
posted @ 2021-04-30 21:59 code-G 阅读(36) 评论(0) 推荐(0) 编辑