If you are using the Singleton pattern, you often have code like this:
Object myValue = MySingleton.getInstance().getSomeValue();
Can this be shortened? Yes! Like in Java Tip #3, we can use public static methods and static import. But then, we do not see at a glance what getInstance() is actually returning, and if we use multiple Singletons within our class, we would have a naming problem. The easy solution: rename the getInstance() method to the (camelCase) name of its class. Now we can write:
Object myValue = mySingleton().getSomeValue();