Article View: borland.public.jbuilder.java.api
Article #3126Re: how to convert string to integer??
From: Regis Eloi
Date: Thu, 14 May 1998 00:00
Date: Thu, 14 May 1998 00:00
27 lines
1357 bytes
1357 bytes
Rich Wilkman wrote:
> Scott:
> From String to Integer.
> Scott Garrison wrote:
> >
> > how to convert string to integer?? integer to string easy enough.
> >
> > stupid question but Jbuilder Doc SUCKS!
> >
> > thx
In case you wanted String to int.try{
String x = "999";
int y = Integer.parseInt(x);
}
catch(NumberFormatException e){}
Regis
--
________________________________________________________________________
Regis Eloi mailto:R.Eloi@dcs.hull.ac.uk
The University of Hull (England) - Department of Computer Science
Institut d'Informatique d'Entreprise (France)
My CV is on the Web at http://www-eleves.iie.cnam.fr/eloi/cv_en.html
________________________________________________________________________
Technical Details
Message-ID:
<355B2147.1B656082@dcs.hull.ac.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<355B0425.6DD20343@mindspring.com> <355B2003.8878370F@corp.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,733133ccd186a4c8 X-Google-Attributes: gid1089d0,public From: Regis Eloi <R.Eloi@dcs.hull.ac.uk> Subject: Re: how to convert string to integer?? Date: 1998/05/14 Message-ID: <355B2147.1B656082@dcs.hull.ac.uk> X-Deja-AN: 353242871 Content-Transfer-Encoding: 7bit References: <355B0425.6DD20343@mindspring.com> <355B2003.8878370F@corp.borland.com> Content-Type: text/plain; charset=us-ascii Organization: University of Hull Mime-Version: 1.0 Reply-To: R.Eloi@dcs.hull.ac.uk Newsgroups: borland.public.jbuilder.java.api