博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
设计模式---单例模式
阅读量:4220 次
发布时间:2019-05-26

本文共 285 字,大约阅读时间需要 1 分钟。

01    /**
02     * @version 1.0
03     * @author Rollen-Holt
04     * 设计模式之 ---单例模式
05     * */
06    
07    class hello{
08        private hello(){
09            System.out.print("hello");
10        }
11        public static hello getHello(){
12            return new hello();
13        }
14        public static void main(String[] a0){
15            hello.getHello();
16        }
17    }

转载地址:http://nnlmi.baihongyu.com/

你可能感兴趣的文章
CSS之浮动(一)
查看>>
CSS之浮动(二)
查看>>
AtomicInteger源码解析
查看>>
CopyOnWriteArraySet源码学习
查看>>
Openfiler 配置 NFS 示例
查看>>
Oracle 11.2.0.1 RAC GRID 无法启动 : Oracle High Availability Services startup failed
查看>>
Oracle 18c 单实例安装手册 详细截图版
查看>>
Oracle Linux 6.1 + Oracle 11.2.0.1 RAC + RAW 安装文档
查看>>
Oracle 11g 新特性 -- Online Patching (Hot Patching 热补丁)说明
查看>>
Oracle 11g 新特性 -- ASM 增强 说明
查看>>
Oracle 11g 新特性 -- Database Replay (重演) 说明
查看>>
Oracle 11g 新特性 -- 自动诊断资料档案库(ADR) 说明
查看>>
Oracle 11g 新特性 -- RMAN Data Recovery Advisor(DRA) 说明
查看>>
CSDN博客之星 投票说明
查看>>
Oracle wallet 配置 说明
查看>>
Oracle smon_scn_time 表 说明
查看>>
VBox fdisk 不显示 添加的硬盘 解决方法
查看>>
Secure CRT 自动记录日志 配置 小记
查看>>
RMAN RAC 到 单实例 duplicate 自动分配通道 触发 ORA-19505 错误
查看>>
mysql 随机分页的优化
查看>>