摘要: 详细 百度和文档 https://www.cnblogs.com/shitouer/archive/2012/12/19/2823641.html 1. 2. 3. is = new FileInputStream("D://a/a/a.txt"); os = new FileOutputStrea 阅读全文
posted @ 2021-01-18 21:50 Master_Sun 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 详细请百度 阅读全文
posted @ 2021-01-18 21:03 Master_Sun 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 详细: https://blog.csdn.net/u011702479/article/details/82262823 https://www.cnblogs.com/su-feng/p/6659064.html 当对字符串进行修改的时候,需要使用 StringBuffer 和 StringBu 阅读全文
posted @ 2021-01-18 20:21 Master_Sun 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 一个进程包含多个线程 一个线程只能跑在一个核上 必须调用start方法,才能开辟一个新的线程 1. 2. 3. 4. 5. 6. 两种创建线程的方式 implements Runnable 和extends Thread × √ 7. 线程的安全性 import java.util.ArrayLis 阅读全文
posted @ 2021-01-18 19:03 Master_Sun 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 1. list ArrayList和LinkedList ListTest 2. map <key,value> 数据结构很重要 HashMap 用到了hash算法 (1)“aaa”.harshCode() 算的一个值:123456 123456%16 (2) (3) 连超过8个,会生成红黑树。 / 阅读全文
posted @ 2021-01-18 16:49 Master_Sun 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 1. 下载jar包并导入 2. 阅读全文
posted @ 2021-01-18 15:33 Master_Sun 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 1. 打jar包 2. 引入jar包 阅读全文
posted @ 2021-01-18 14:34 Master_Sun 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 详细:https://www.cnblogs.com/coprince/p/8603492.html 1. 接口: 2. 实现了此接口的类 3. 使用 打印: 例子: /** * @author sr * @date 2021/1/18 */ public class User { private 阅读全文
posted @ 2021-01-18 14:18 Master_Sun 阅读(34) 评论(0) 推荐(0) 编辑