![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
来杯95年的洪水
路漫漫其修远兮,吾将上下而求索。
展开
-
Collection集合以及实现类详解
常用集合体系 集合也叫容器,用于存储对象数据。 Collection详解 一、主要方法 返回值 方法名 boolean add() boolean addAll() void clear() boolean cotains() boolean containsAll() boolean equals() int hashCode() boolean ...原创 2019-10-30 15:20:44 · 296 阅读 · 0 评论 -
设计模式 -- 单例模式
直接上代码: package singleton; public class Singleton { /** * 1、私有化构造函数,使外部类创建不了对象 */ private Singleton (){} /** * 2、私有化类的声明 */ private static Singleton s; /** ...原创 2019-10-23 17:29:57 · 74 阅读 · 0 评论