On Oct 3, 2:26 am, Zhao Lin <[email protected]> wrote:
> Hi java
>
> public void run() {
> Random random = new Random();
> for (;;) {
> try {
> Thread.sleep(random.nextInt(10));
> } catch (InterruptedException e) {}
> bowee.bow(bower);
> }
>
> I need to ask again. I do not understant for(;;). Please suggestion.
It is just a way to write an infinite loop, which, in this case, will
end when the process (the particular thread) is interrupted.
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---