![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
一剑一酒
这个作者很懒,什么都没留下…
展开
-
hashMap解析
在官方文档中是这样描述HashMap的: Hash table based implementation of the Map interface. This implementation provides all of the optional map operations, and permits null values and the null key. (The HashMap cl...转载 2018-12-13 20:30:27 · 128 阅读 · 0 评论 -
枚举类的使用
enum 与普通 class 的异同相同之处:1.它们都可以定义一些属性和方法,不同之处是:1. enum不能new一个对象,只能在enum类里面定义好所有对象,而且对象不能重复2. enum对象之间使用分号隔开,最后添加一个分号,对象需要定义在属性和方法前3. enum 不能使用 extends 关键字继承其他类,因为 enum 已经继承java.lang.Enum(ja...原创 2018-12-11 20:46:16 · 165 阅读 · 0 评论