07 2018 档案

摘要:* 线程:程序执行的一条路径,一个进程可以包含多条线程 * 多线程并发执行可以提高程序的效率,可以同时完成多个工作 * * JVM的启动至少启动了垃圾回收线程和主线程两个线程,所以是多线程; * * 多线程的实现方式有2中: * 1. 继承Thread * 1) 定义类继承Thread * 2) 重 阅读全文
posted @ 2018-07-15 20:40 just_do_it_! 阅读(205) 评论(0) 推荐(0)
摘要:FileOutputStream: 字节流读取中文时需要注意的问题: IO流的异常处理机制 try...finally IO流之练习: FileReader: FileWriter: Buffered 缓冲流: 对不同编码格式的文件进行读写处理: 练习: /* * 使用流模拟使用版软件功能 * 分析 阅读全文
posted @ 2018-07-09 22:07 just_do_it_! 阅读(178) 评论(0) 推荐(0)
摘要:1 public class Demo1_File { 2 3 /* 4 * File(String pathname) 根据一个路径得到File对象 5 * File(String parent, String child) 根据一个目录和一个子文件/目录得到File对象 6 * File(File parent, String chi... 阅读全文
posted @ 2018-07-09 22:06 just_do_it_! 阅读(146) 评论(0) 推荐(0)
摘要:* 异常处理的两种方式: * a: try...catch...finally * try...catch * try...catch...finally * try...finally * b:throws * try...catch处理异常的基本格式 * try...catch...finall 阅读全文
posted @ 2018-07-08 11:01 just_do_it_! 阅读(216) 评论(0) 推荐(0)
摘要:1. Map集合之基础增删查等功能 2. 遍历Map集合 3. 通过Entry对Map集合进行遍历 4. HashMap 5. LinkedHashMap 怎么存就怎么取 6. TreeMap 6.1 Student 自定义类 7. HashMap和Hashtable的区别 * 共同点: * 底层都 阅读全文
posted @ 2018-07-04 07:20 just_do_it_! 阅读(140) 评论(0) 推荐(0)
摘要:1 public class Demo1_Set { 2 3 /* 4 * set集合无序、不可重复、无索引 5 */ 6 public static void main(String[] args) { 7 8 //demo1(); 9 HashSet hs = new HashSet(... 阅读全文
posted @ 2018-07-04 07:12 just_do_it_! 阅读(183) 评论(0) 推荐(0)