Q:

Delay code in JAVA

I'd like to know if there is a way to delay code execution in java. If there is, kindly post a reply and please note that I'm not referring to java android here
Similar to system c where i can write something like:
delay_ms(1000);

to delay the code from execution for a minute

A:

You can use:
Thread.sleep(1000);

This causes the current Thread to sleep for 1000 milliseconds.

