
JAVA每日源码
文章平均质量分 74
IsEmpty_1024
曾经的SUSTCer,羡慕本科有计算机专业的大学~
展开
-
20220608 OKHttp学习过程(源码浅读+JSON2POJO+监控实战+机器人部署)
Recetly I would like to buy some MaoTai due to the poor life.Thus, it pushed me to learn about OKhtpp to discover the new land~Maven also remind me that I need to add another dependence to ensure it could run properly.Why Use ItOkHttp is an HTTP client t原创 2022-06-08 20:10:14 · 1432 阅读 · 0 评论 -
每日源码之ArrayList自动扩容实现(add单个元素VS集合)20220526
动态增长原理:首先看一下往ArrayList加对象的方法add&addAll():add(): /** * Appends the specified element to the end of this list. 添加到list的最后面 * * @param e element to be appended to this list * @return <tt>true</tt> (as specified by原创 2022-05-26 17:33:35 · 152 阅读 · 0 评论 -
每日源码之ArrayList变量与构造函数小读总结附toArray方法20220525
变量//唯一序列号ID private static final long serialVersionUID = 8683452581122892189L;/** * Default initial capacity. jdk7之前初始容量为10,类似饿汉式,jdk8以后初始容量为0,类似懒汉式 */private static final int DEFAULT_CAPACITY = 10; /** * Shared empty array in原创 2022-05-25 20:36:30 · 172 阅读 · 0 评论