Click to See Complete Forum and Search --> : Delay method


Ajit
03-17-2000, 05:34 PM
Hi all!!

I am new to Java Programming and am looking for a method or class in Java
which works like the delay() function in C.
Is there really any such method in Java which would help in introducing delays
in between operations??

If not, please tell me how to bring about a delay.

Thank You.

Ajit

Richard S Hendershot
03-18-2000, 12:14 AM
new thread().sleep(5 * 1000); // 5 second delay


Ajit <ajit.dharmik@usa.net> wrote in message
news:38d2a4ff$1@news.devx.com...
>
> Hi all!!
>
> I am new to Java Programming and am looking for a method or class in Java
> which works like the delay() function in C.
> Is there really any such method in Java which would help in introducing
delays
> in between operations??
>
> If not, please tell me how to bring about a delay.
>
> Thank You.
>
> Ajit
>