We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed81bcf commit 54b414aCopy full SHA for 54b414a
singleton/src/main/java/com/iluwatar/App.java
@@ -1,5 +1,11 @@
1
package com.iluwatar;
2
3
+/**
4
+ *
5
+ * Singleton pattern ensures that the class (IvoryTower) can have only
6
+ * one existing instance and provides global access to that instance.
7
8
+ */
9
public class App
10
{
11
public static void main( String[] args )
singleton/src/main/java/com/iluwatar/IvoryTower.java
@@ -1,5 +1,10 @@
+ * Singleton class.
public class IvoryTower {
private static IvoryTower instance = new IvoryTower();
0 commit comments