Update IvoryTower.java

This commit is contained in:
Yusuf Aytaş 2014-09-06 23:54:25 +01:00
parent d4ee7a7da0
commit 0509e48d37

View File

@ -7,12 +7,14 @@ package com.iluwatar;
*/
public class IvoryTower {
private static IvoryTower instance = new IvoryTower();
private static IvoryTower instance;
private IvoryTower() {
}
private IvoryTower() {}
public static IvoryTower getInstance() {
if(instance == null){
instance = IvoryTower();
}
return instance;
}
}