Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: java question
- To: tlug@example.com
- Subject: Re: java question
- From: B0Ti <9915104t@example.com>
- Date: Thu, 14 Jun 2001 16:27:00 +0900
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=iso-2022-jp
- Organization: Kobe University, Japan
- References: <3B278493.388731B4@example.com> <20010614004711.B657@example.com>
- Reply-To: tlug@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <8aR8WD.A.mG.cbGK7@example.com>
- Resent-Sender: tlug-request@example.com
- Sender: boti
Thomas O'Dowd wrote: > use a loop with an exit condition, or an infinite loop with a break, or ... > > int someInt; > while() > { > try > { > someInt = Integer.parseInt(readUserInput()); > if(someInt >= 1 && someInt <= 10) > break; > } > catch (NumberFormatException) > { > ; > } > } > This is how I started doing it initially, but if I used somInt after the catch statement javac said: cannot resolve symbol. The "finally" statement solved it. Thanks to all who replied! -- B0Ti.
- Follow-Ups:
- Re: java question
- From: "Thomas O'Dowd" <tom@example.com>
- References:
- java question
- From: B0Ti <9915104t@example.com>
- Re: java question
- From: "Thomas O'Dowd" <tom@example.com>
Home | Main Index | Thread Index
- Prev by Date: Re: Kernel Panic during setting up RAID!
- Next by Date: Re: java question
- Prev by thread: Re: java question
- Next by thread: Re: java question
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links