Created
July 18, 2017 08:53
-
-
Save linnykoleh/41f904bcb3f8fa234f5674d70ca80515 to your computer and use it in GitHub Desktop.
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 characters
public class StaticSingleton { | |
private static StaticSingleton instance = new StaticSingleton(); | |
private StaticSingleton(){ | |
} | |
public static StaticSingleton getInstance(){ | |
return instance; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment