Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / January 2005

Tip: Looking for answers? Try searching our database.

easiest way??

Thread view: 
Radith - 13 Jan 2005 09:47 GMT
what's the easiest way to create an infinite loop??

Cheers
Aki \ - 13 Jan 2005 10:20 GMT
> what's the easiest way to create an infinite loop??

while(true){
    //do stuff   
}

Signature

-Aki "Sus" Laukkanen

Ryan Stewart - 13 Jan 2005 12:42 GMT
>> what's the easiest way to create an infinite loop??
>
> while(true){
>     //do stuff }

for (;;) {
   //do stuff
}

Depends on your definition of "easiest".
Tom Dyess - 13 Jan 2005 12:51 GMT
> "Aki "Sus" Laukkanen" <aki.laukkanenREMOVETHIS@helsinki.fi> wrote in
> message news:cs5i1d$k2a$1@oravannahka.helsinki.fi...
[quoted text clipped - 8 lines]
>
> Depends on your definition of "easiest".

10 goto 10

Whoops, wrong language, wrong era. Lol.

Signature

Tom Dyess
OraclePower.com

Aki \ - 13 Jan 2005 13:05 GMT
>>"Aki "Sus" Laukkanen" <aki.laukkanenREMOVETHIS@helsinki.fi> wrote in
>>message news:cs5i1d$k2a$1@oravannahka.helsinki.fi...
[quoted text clipped - 13 lines]
>
> Whoops, wrong language, wrong era. Lol.

:-) _The_ classic Basic program from the glorious times of Commodore c-64.
Oh, those were the days...

Signature

-Aki "Sus" Laukkanen

Patricia Shanahan - 13 Jan 2005 22:30 GMT
Aki "Sus" Laukkanen wrote:

>>> "Aki "Sus" Laukkanen" <aki.laukkanenREMOVETHIS@helsinki.fi> wrote in
>>> message news:cs5i1d$k2a$1@oravannahka.helsinki.fi...
[quoted text clipped - 16 lines]
> :-) _The_ classic Basic program from the glorious times of Commodore c-64.
> Oh, those were the days...

Much older than that. It is also a Fortran continuous loop
statement.

Patricia
Mike B - 14 Jan 2005 20:11 GMT
>> "Aki "Sus" Laukkanen" <aki.laukkanenREMOVETHIS@helsinki.fi> wrote in
>> message news:cs5i1d$k2a$1@oravannahka.helsinki.fi...
[quoted text clipped - 12 lines]
>
> Whoops, wrong language, wrong era. Lol.

How about

       BR   15

Even older and more direct... ;-)

Signature

Mike B

Andrew McDonagh - 14 Jan 2005 22:55 GMT
Aki "Sus" Laukkanen wrote:

>> what's the easiest way to create an infinite loop??
>
> while(true){
>     //do stuff  
> }

I'd prefer ...

while (!false) {
   // do stuff...
}

:-)
dar7yl - 13 Jan 2005 21:04 GMT
> what's the easiest way to create an infinite loop??

Call tech support!

"For help in Punjabi, press 1, for help in Farsi, press 2. To talk to a live
operator, enter secret decoder ring code."

regards,
   Dar7y;
Starshine Moonbeam - 13 Jan 2005 21:39 GMT
> what's the easiest way to create an infinite loop??

Let me code it.

*rimshot*



Signature

Starshine Moonbeam
mhm31x9 Smeeter#29 WSD#30
sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM

iamfractal@hotmail.com - 14 Jan 2005 15:35 GMT
> what's the easiest way to create an infinite loop??
>
> Cheers

Infinite loops have neither beginning nor end, as they're infinite, so
you can't create one.
:)

.ed

www.EdmundKirwan.com - Home of The Fractal Class Composition.
thufir - 14 Jan 2005 16:41 GMT
Certainly an "infinite" loop never has an "end," since the number of
its iterations approaches infinity--until some outside force interrupts
it, in which case it's finite.  Which makes the existence of an
infinite loop problematic, I'll go so far as to say there's never been
an infinite loop...

There's always that first iteration, though, so they do have a
"beginning."

--
Thufir Hawat
Thomas Schodt - 14 Jan 2005 16:43 GMT
> Infinite loops have neither beginning nor end, as they're infinite, so
> you can't create one.

No programming involved.
<http://mathforum.org/sum95/math_and/moebius/moebius.html>

In mathematics, the open problems are infinitely more interesting. :-D

I remember a thread on Collatz from just over a year ago.
<http://forum.java.sun.com/thread.jspa?forumID=426&threadID=471043
Tom Dyess - 15 Jan 2005 07:02 GMT
>> Infinite loops have neither beginning nor end, as they're infinite, so
>> you can't create one.
[quoted text clipped - 6 lines]
> I remember a thread on Collatz from just over a year ago.
> <http://forum.java.sun.com/thread.jspa?forumID=426&threadID=471043>

Don't forget Klein

http://www.kleinbottle.com/

Signature

Tom Dyess
OraclePower.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.