🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#16766
From: Jeff Rafter
Date: Mon, 18 Jan 1999 00:00
11 lines
872 bytes
Daniel,

Another shortcut is as follows --

    int i = 10;
    myString = "" + i;

The concatenation operator will convert the int automatically (this is
slower than using valueOf)

Jeff Rafter
Technical Details
Message-ID: <7811ad$aqf5@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <780d95$a807@forums.borland.com> <36a3bfe4.1561718101@forums.borland.com> <78107g$aqc4@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,1189d19be30d3415
X-Google-Attributes: gidf74b3,public
From: "Jeff Rafter" <jeffrafter@earthlink.net>
Subject: Re: How do I convert an int into a String?
Date: 1999/01/18
Message-ID: <7811ad$aqf5@forums.borland.com>
X-Deja-AN: 434283162
References: <780d95$a807@forums.borland.com> <36a3bfe4.1561718101@forums.borland.com> <78107g$aqc4@forums.borland.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0810.800
Organization: Realsoft Development
X-MSMail-Priority: Normal
Reply-To: "Jeff Rafter" <jeffrafter@earthlink.net>
Newsgroups: borland.public.jbuilder.java.language