Domanda di colloquio di Google

Code an application that creates a new thread and exposes a "ping()" method. Whenever ping() is called, the thread prints "Google rocks" once.