On Sat, Oct 3, 2009 at 5:17 PM, arun prakash <[email protected]>wrote:
> > hi , > > first let me start from basics right,well the three parameters > intialisation ,condition ,increment .But in this case there is no condition > under which the loop will terminate,so the loop will go on.usually some > infinite loops are required like in operating system command proceessors ,so > what happens in this case infinite loop are loops with special termination > request > On Sat, Oct 3, 2009 at 10:29 AM, miga <[email protected]> wrote: > >> >> >> >> 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. >> >> >> > > > -- > from friend Arun > -- from friend Arun --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
