摘要: 1.Scanner 1 Scanner sc = new Scanner(System.in); 2 String s1 = sc.next(); 3 String s2 = sc.nextLine(); 4 int a = sc.nextInt(); 2.BufferedReader 1 Buff 阅读全文
posted @ 2020-07-24 14:17 德华。 阅读(558) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-07-21 23:08 德华。 阅读(165) 评论(0) 推荐(0)
摘要: //获取编码格式 gb2312,UTF-16,UTF-8,Unicode,UTF-8public static String getCode(String path) throws Exception { InputStream inputStream = new FileInputStream(p 阅读全文
posted @ 2020-07-19 17:01 德华。 阅读(293) 评论(0) 推荐(0)
摘要: 个人理解: ArrayList 集合继承自:AbstractList 在AbstractList中定义了一个 modCount 变量,用于记录在集合使用过程中对集合增删操作的次数(修改了集合长度的操作的次数) ArrayList作为实现类自然也就继承了这个变量,并初始化为0 当ArrayList创建 阅读全文
posted @ 2020-07-18 15:58 德华。 阅读(312) 评论(0) 推荐(0)