Skip to content

Instantly share code, notes, and snippets.

Avatar

Evergreen xiongxiao1992

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