Article View: borland.public.jbuilder.java.language
Article #16400Re: JBUILDER2 ==>> how to convert integer to string???
From: Vasudevan Srinivasan
Date: Fri, 26 Feb 1999 00:00
Date: Fri, 26 Feb 1999 00:00
43 lines
1426 bytes
1426 bytes
flashback wrote: > howdy, > > Tor Iver Wilhelmsen schrieb: > > > > PK <Kolb@ccs.de> writes: > > > > > Can anybody post me a source-code which can help me in this issue? > > > > String s = Integer.parseInt(theInt); > > ???? > pk wanted to convert an Integer to a String. > And as far as i know the mezhod Integer.parseInt is defined as > Integer.parseInt(String aString) or > Integer.parseInt(String aString, intaRadix) > > but what pk needs is > > String s = theInteger.toString() This will work if you have an Integer object. But if you have the primitive int, the simple way is: String s = Integer.toString(int); Vasu > > > regards > > gregor > > -- > > the best is yet to come... > > http://www.netcologne.de/~nc-schneigr > icq-# 14100227 > public key available at pgp.ai.mit.edu
Technical Details
Message-ID:
<36D6AE77.BE1D8C02@netrisk.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36D53B18.1CED204A@ccs.de> <ubtiiu4ez.fsf@sds.no> <36D5B9AD.E9FC64CE@netcologne.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,1568a9433d0fd22c X-Google-Attributes: gidf74b3,public From: Vasudevan Srinivasan <vasudevan@netrisk.com> Subject: Re: JBUILDER2 ==>> how to convert integer to string??? Date: 1999/02/26 Message-ID: <36D6AE77.BE1D8C02@netrisk.com> X-Deja-AN: 448722122 Content-Transfer-Encoding: 7bit References: <36D53B18.1CED204A@ccs.de> <ubtiiu4ez.fsf@sds.no> <36D5B9AD.E9FC64CE@netcologne.de> Content-Type: text/plain; charset=us-ascii Organization: NetRisk Inc Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language