Hackerrank
Hackerrank Java Singleton Pattern Solution
"The singleton pattern is a design pattern that restricts the instantiation of a class to one object. This is useful when exactly one object is needed to coordinate actions across the system." - Wikipedia: Singleton Pattern Complete the Singleton class in your editor which contains the following components: