🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Please HELP!!!!!!!

#16441
From: Tim Skau
Date: Fri, 19 Feb 1999 00:00
25 lines
1489 bytes

Rhet Behler wrote:

> Ok here is my question!! I am a new jbuilder user and I am trying to run my
> first program. I have compiled it and it has run. The problem is when it
> gets to the msdos prompt window it does not stop. It just keeps going and I
> can't read my program which simply says, "Hello WORLD!". If someone could
> tell me how I can stop my program so that I can read what I programmed it to
> say I would appreciate it very much. I will also throw in a free smiley face
> : )
> Thank you
> Rhet (very new to this) Behler

The thing I do is this ( at the end of the program ) :

try {
    //Just wait for input - press enter to close application.
    System.in.read();
}
catch(Exception exc) {
    // Some code here - not really important.
}

-Tim
Technical Details
Message-ID: <36CD7DD1.6EA5DA05@narviknett.no>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36ae8b70.0@news3.uswest.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,b69098d6f9053e33
X-Google-Attributes: gidf74b3,public
From: Tim Skau <tskau@narviknett.no>
Subject: Re: Please HELP!!!!!!!
Date: 1999/02/19
Message-ID: <36CD7DD1.6EA5DA05@narviknett.no>
X-Deja-AN: 446065787
Content-Transfer-Encoding: 7bit
References: <36ae8b70.0@news3.uswest.net>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@telia.no
X-Trace: news.telia.no 919433134 195.18.212.128 (Fri, 19 Feb 1999 15:05:34 CET)
Organization: Telia Internet Public Access
MIME-Version: 1.0
NNTP-Posting-Date: Fri, 19 Feb 1999 15:05:34 CET
Newsgroups: borland.public.jbuilder.java.language