Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp

Eloy Kul

Greenhorn
+ Follow
since Sep 18, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Eloy Kul

class MyClass {
static private MyClass This;

private MyClass() {....}

static public MyClass getInstance() {
if(This == null) {
This = new MyClass();
}
return This;
}

public void doStuff() {}
}

MyClass.getInstance().doStuff();
[ September 18, 2008: Message edited by: Eloy Kul ]
10 years ago