Update IvoryTower.java
This commit is contained in:
parent
d4ee7a7da0
commit
0509e48d37
@ -7,12 +7,14 @@ package com.iluwatar;
|
|||||||
*/
|
*/
|
||||||
public class IvoryTower {
|
public class IvoryTower {
|
||||||
|
|
||||||
private static IvoryTower instance = new IvoryTower();
|
private static IvoryTower instance;
|
||||||
|
|
||||||
private IvoryTower() {
|
private IvoryTower() {}
|
||||||
}
|
|
||||||
|
|
||||||
public static IvoryTower getInstance() {
|
public static IvoryTower getInstance() {
|
||||||
|
if(instance == null){
|
||||||
|
instance = IvoryTower();
|
||||||
|
}
|
||||||
return instance;
|
return instance;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user