🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16424

Re: Returning to MAIN after a LOOP

#16424
From: Steve Schafer (TeamB)
Date: Mon, 01 Mar 1999 00:00
14 lines
1025 bytes
On Mon, 01 Mar 1999 14:54:05 +0000, PK <Kolb@ccs.de> wrote:

>I've got a method which does something (println for exmple). (IN A CONSOLE APPLICATION)
>After this it should jump back to the main-method (where it starts again)
>Can anybody help me to achieve this? (code)

You can't literally start from the top of main again, but you can
easily use a loop of some kind:

 while (true) {
   // do stuff
   }

-Steve
Technical Details
Message-ID: <374cb177.467334407@90.0.0.40>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36DA8B08.1FC8E593@ccs.de> <36DA9A73.267B@cwcom.co.uk> <36DAAA0D.752E1489@ccs.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,9c5d578310390b36
X-Google-Attributes: gidf74b3,public
From: pandeng@telepath.com (Steve Schafer (TeamB))
Subject: Re: Returning to MAIN after a LOOP
Date: 1999/03/01
Message-ID: <374cb177.467334407@90.0.0.40>
X-Deja-AN: 449983593
Content-Transfer-Encoding: 7bit
References: <36DA8B08.1FC8E593@ccs.de> <36DA9A73.267B@cwcom.co.uk> <36DAAA0D.752E1489@ccs.de>
Content-Type: text/plain; charset=us-ascii
Organization: TeamB
Mime-Version: 1.0
Reply-To: pandeng@telepath.com
Newsgroups: borland.public.jbuilder.java.language