Pergunta de entrevista da empresa Google

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