Formatted all files to the same standard

This commit is contained in:
matthew
2014-10-08 13:42:12 +01:00
parent 53a2a8b150
commit 3da9ad5469
151 changed files with 952 additions and 870 deletions

View File

@@ -1,19 +1,19 @@
package com.iluwatar;
/**
*
*
* Singleton pattern ensures that the class (IvoryTower) can have only one
* existing instance and provides global access to that instance.
*
*
*/
public class App {
public static void main(String[] args) {
public static void main(String[] args) {
IvoryTower ivoryTower1 = IvoryTower.getInstance();
IvoryTower ivoryTower2 = IvoryTower.getInstance();
System.out.println("ivoryTower1=" + ivoryTower1);
System.out.println("ivoryTower2=" + ivoryTower2);
IvoryTower ivoryTower1 = IvoryTower.getInstance();
IvoryTower ivoryTower2 = IvoryTower.getInstance();
System.out.println("ivoryTower1=" + ivoryTower1);
System.out.println("ivoryTower2=" + ivoryTower2);
}
}
}

View File

@@ -3,13 +3,14 @@ package com.iluwatar;
/**
*
* Singleton class.
*
*
*/
public class IvoryTower {
private static IvoryTower instance = new IvoryTower();
private IvoryTower() {}
private IvoryTower() {
}
public static IvoryTower getInstance() {
return instance;