Delay code in JAVA -


i'd know if there way delay code execution in java. if there is, kindly post reply , please note i'm not referring java android here

similar system c can write like:

delay_ms(1000); 

to delay code execution minute

you can use:

thread.sleep(1000); 

this causes current thread sleep 1000 milliseconds.


Comments