Re: main class and static



On Wed, 21 Nov 2007 11:20:37 +0100, Snide wrote:
I have already used Thread.sleep(someMilliseconds), and it actually
worked. I wanted to use wait() instead, because is suits my need
more than sleep().

What is your need? In what way does wait() suit your need better than
sleep()?

My misunderstanding was about sleep and wait, which in my mind were
of the same kind.

Using someting like My_main_class.class.wait() compiles and runs OK.

Does you call My_main_class.class.notify() somewhere else in your
code? If not, then you don't need wait() at all, and I don't
understand your desire to use wait() instead of sleep().

/gordon


--
.



Relevant Pages