Re: main class and static
- From: Gordon Beaton <n.o.t@xxxxxxxxx>
- Date: 21 Nov 2007 12:06:29 GMT
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
--
.
- References:
- main class and static
- From: Snide
- Re: main class and static
- From: Gordon Beaton
- Re: main class and static
- From: Snide
- main class and static
- Prev by Date: Extend Inner class along with outer class
- Next by Date: Re: Extend Inner class along with outer class
- Previous by thread: Re: main class and static
- Next by thread: Re: main class and static
- Index(es):
Relevant Pages
|
|