🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Conversion

#15530
From: Chor-Hiong Law
Date: Fri, 04 Jun 1999 00:00
20 lines
969 bytes
Hi,

Quach Hoa Thanh wrote in message <375734C1.929A4A33@ns.sympatico.ca>...
>I have a variable type integer. How do you convert it to a String so
>that I can display it using
>JOptionPane.ShowMessageDialog(this,(String)integer). IntToStr is the
>funtion that I use in Delphi.


How about this: (assumming yourInt is an int not an Integer !)

JOptionPane.ShowMessageDialog(this, Integer.toString(yourInt));

-chor-

>
>Thank you all for your help.
>
>Thanh
>
Technical Details
Message-ID: <7j7o55$mgc9@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <375734C1.929A4A33@ns.sympatico.ca>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,2ba04f02b696d2cb
X-Google-Attributes: gidf74b3,public
From: "Chor-Hiong Law" <chorhiong@email.msn.com>
Subject: Re: Conversion
Date: 1999/06/04
Message-ID: <7j7o55$mgc9@forums.borland.com>
X-Deja-AN: 485552646
References: <375734C1.929A4A33@ns.sympatico.ca>
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
Newsgroups: borland.public.jbuilder.java.language