Created
January 27, 2017 15:50
-
-
Save Climber24/c22322f6f7be5be73580097a99a5ffda to your computer and use it in GitHub Desktop.
Revisions
-
Climber24 revised this gist
Jan 27, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ public class Singleton { private static Singleton singletone = new Singleton(); private static int counter = 0; private Singleton() {} static Singleton getInstance() { -
Climber24 created this gist
Jan 27, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ public class Singleton { static Singleton singletone = new Singleton(); private static int counter = 0; private Singleton() {} static Singleton getInstance() { return singletone; } }