Edit: Answered - error was method wasn\'t static
I\'m used the Singleton Design Pattern
public class Singleton {
private static final Singleton I
Since we doesn't want to allow more than one copy to be accessed. So We need to manually instantiate an object, but we need to keep a reference to the singleton so that subsequent calls to the accessor method can return the singleton (rather than creating a new one). Thats why is
Singleton singleton = Singleton.getInstance();
Correct way to access any singletonObject.