Article View: borland.public.jbuilder.java.language
Article #7355Re: goto in Java
From: Nabin Thomas
Date: Sun, 24 Jun 2001 12:38
Date: Sun, 24 Jun 2001 12:38
37 lines
1970 bytes
1970 bytes
YOu can convert that code to a while loop or for loop
goto is not supported in Java though it is a reserved keyword.
The loop and continue statements can take a statement label too which can
be used to hack gotos
x wrote:
> Is there a way to compile a program with goto command ?
> I know that according to the Java spec, goto is a Java reserved keyword
> but
> most compilers do not support it.
> Nevertheless, I encountered a code with a goto which I need to compile
> and I get a compilation error in JBuilder
> is there a workaround /any suggestion?
> TIA
>
> ramirose@mailvision.net
--
***********************************
***************************************************
******************* Web Card **********************
***************************************************
Name : Nabin Thomas
e-mail : nabinthomas@hotmail.com
Web : http://nabin.topcities.com
Feel free to contact me thru e-mail or MSN Mssenger
if required but DONOT SPAM
***************************************************
***********************************
Technical Details
Message-ID:
<3B35DF5E.109F1C67@hotmail.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3B35CAF4.BF7F85CE@mailvision.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,88c6fa992e554a5e X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-06-24 07:44:15 PST Message-ID: <3B35DF5E.109F1C67@hotmail.com> Date: Sun, 24 Jun 2001 18:08:54 +0530 From: Nabin Thomas <nabinthomas@hotmail.com> X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: Re: goto in Java References: <3B35CAF4.BF7F85CE@mailvision.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 202.86.162.22 X-Trace: dnews 993393600 202.86.162.22 (24 Jun 2001 07:40:00 -0700) Lines: 40 Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews