Ask your own question, for FREE!
Computer Science 23 Online
OpenStudy (anonymous):

would this function in Java be considered an infinite loop? (I'm attaching my code in another post inside, it'll be in "rtf"(for Notepad,Wordpad...etc.)

OpenStudy (anonymous):

Okay here it is, I'm using a while loop.

OpenStudy (anonymous):

Yes. The condition will always evaluate to true since both sides are constant. Therefore, the commands within the while loop will be executed forever (or at least until your machine crashes or you issue a ^c or a break command or you exit the program).

OpenStudy (anonymous):

okay thanks.

OpenStudy (anonymous):

Also, you may use http://www.ideone.com to post code and also test it. http://ideone.com/ouUL1 is similar to your code (warning, long page)

OpenStudy (anonymous):

http://c2.com/cgi/wiki?GotoConsideredHarmful

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!