Skip to content

Instantly share code, notes, and snippets.


Evergreen xiongxiao1992

View GitHub Profile
xiongxiao1992 /
Created Sep 28, 2013
a java program that implements SINGLETON
class Animal{
private static Animal instance = new Animal();
private Animal(){
System.out.println("init the class");
public static Animal getInstance(){
return instance ;
xiongxiao1992 / Test.c
Last active Dec 24, 2015
just a test program..
View Test.c
void main(){
printf("hello world");