START & STOP

Just a silly question.

Can I make the execution halts for a few seconds without using any Thread stuff? Sort of sleep...

Thanks.

[148 byte] By [kraton_mayaa] at [2007-11-27 11:30:10]
# 1

Thread.sleep(milliseconds)

google is your friend.

TuringPesta at 2007-7-29 16:32:15 > top of Java-index,Java Essentials,New To Java...
# 2

You are my best buddy now, guru! :D

You mean I have to use Java's Thread anyway.

Anyway thanks for the responds. I am out.

kraton_mayaa at 2007-7-29 16:32:15 > top of Java-index,Java Essentials,New To Java...
# 3

http://java.sun.com/j2se/1.3/docs/api/java/lang/Thread.html#sleep(long)

TuringPesta at 2007-7-29 16:32:15 > top of Java-index,Java Essentials,New To Java...
# 4

> You mean I have to use Java's Thread anyway.

But you cannot run a Java program without at least one thread.

floundera at 2007-7-29 16:32:15 > top of Java-index,Java Essentials,New To Java...
# 5

I get it. Now I find this Thread stuff is a powerful feature of Java. Great stuff.

Thanks.

kraton_mayaa at 2007-7-29 16:32:15 > top of Java-index,Java Essentials,New To Java...