🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How do I convert an int into a String?

#16763
From: Chris Hill
Date: Mon, 18 Jan 1999 00:00
25 lines
975 bytes
See the static functions String.valueOf(int) and String.valueOf(char)

For example:

int my_int = 591;
String my_string = String.valueOf(my_int);
char my_q = 'q';
String my_other_string = String.valueOf(my_q);

On Tue, 19 Jan 1999 11:38:15 +1300, "Daniel R. J. Lind"
<daniel@synopsys.co.nz> wrote:

>Hi,
>
>Basic question this one - I can convert a int into a char, but I can't
>convert either into a String.  This has got to be easy.
>
>Cheers,
>
>Daniel
>
>

Chris Hill
Chris244@aol.com
Technical Details
Message-ID: <36a3bfe4.1561718101@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <780d95$a807@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,1189d19be30d3415,start
X-Google-Attributes: gidf74b3,public
From: Chris244@aol.com (Chris Hill)
Subject: Re: How do I convert an int into a String?
Date: 1999/01/18
Message-ID: <36a3bfe4.1561718101@forums.borland.com>
X-Deja-AN: 434191832
References: <780d95$a807@forums.borland.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language