This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
No offence but I think that you should try to use less patterns and first learn java. And give us some more information because we're guessing. What is Object? Is it the java.lang.Object class? Then it's no wonder that it's not compiling because that class does not contain the static function getInstance.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.