Thread.sleep(<millisecondi>);

Devi catturare una InterruptedException.

Ciao.