Article View: be.comp.programming
Article #2734Re: do while + java
From: Christian R
Date: Sat, 13 Mar 2004 22:10
Date: Sat, 13 Mar 2004 22:10
27 lines
1629 bytes
1629 bytes
Bedankt iedereen,
Christian.
"Kristoffel" <knospam@yahoo.com> schreef in bericht
news:icG4c.33185$881.2240567@phobos.telenet-ops.be...
> Christian R wrote:
> > Hallo,
> >
> > Een klein Java vraagje aub.
> > Bestaat er een Do While instructie in Java?
> > Zo niet, door wat kan dit dan het best vervangen worden?
> > Alvast bedankt,
> >
> > Christian.
> >
> >
>
> class DoWhile {
> public static void main (String[] args) {
> int i = 1;
> do {
> System.out.println ("lijn nr.: " + i);
> } while (i++ <= 5);
> System.exit (0);
> }
> }
Technical Details
Message-ID:
<EFL4c.33562$JP2.2342965@phobos.telenet-ops.be>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsgate.cistron.nl!aotearoa.belnet.be!news.belnet.be!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mailReferences:
<vFF4c.33145$881.2240567@phobos.telenet-ops.be> <icG4c.33185$881.2240567@phobos.telenet-ops.be>Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit X-Google-Thread: fcea4,e692ccc46ee9cac5 X-Google-Attributes: gidfcea4,public X-Google-ArrivalTime: 2004-03-13 14:10:46 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsgate.cistron.nl!aotearoa.belnet.be!news.belnet.be!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail From: "Christian R" <Christian.Rosseel@pandora.be> Newsgroups: be.comp.programming References: <vFF4c.33145$881.2240567@phobos.telenet-ops.be> <icG4c.33185$881.2240567@phobos.telenet-ops.be> Subject: Re: do while + java Lines: 29 Organization: Home X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: <EFL4c.33562$JP2.2342965@phobos.telenet-ops.be> Date: Sat, 13 Mar 2004 22:10:44 GMT NNTP-Posting-Host: 213.119.91.198 X-Complaints-To: abuse@telenet.be X-Trace: phobos.telenet-ops.be 1079215844 213.119.91.198 (Sat, 13 Mar 2004 23:10:44 MET) NNTP-Posting-Date: Sat, 13 Mar 2004 23:10:44 MET