Edit: Answered - error was method wasn\'t static
I\'m used the Singleton Design Pattern
public class Singleton { private static final Singleton I
Singleton singleton = Singleton.getInstance();
is the correct way. Make sure your getInstance() method is indeed static.
getInstance()
static
Since your Singleton implementation is far from being safe - your object can be instantiated via reflection, you may want to create a singleton based on enum
Singleton