Article View: borland.public.jbuilder.java.language
Article #7238Re: Converting int to string
From: Michael Rachow
Date: Wed, 04 Jul 2001 19:14
Date: Wed, 04 Jul 2001 19:14
24 lines
1582 bytes
1582 bytes
Seems to to be such a thing one should pull out by ones own. A general hint You need to wrap every generic type by its corresponding class type to be able to call methods on it. In most cases you can use that wrapper class as a factory which means to do not need an instance of that wrapper class. For your case you can let the class Integer do this for you: beingAStringNow = Integer.toString(myint); Michael Motty Adler <MAdler@TheKosher.net> schrieb in im Newsbeitrag: 3B434ACC.C76F849F@TheKosher.net... > Hi. > > I am (brand) new to java. > > My question is simple- I want to assign a int to the caption of a > jlabel how do it. > > JLabel1.setCaption(????(myint)); > > thanks >
Technical Details
Message-ID:
<3b436a72_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!netnews.com!xfer02.netnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsReferences:
<3B434ACC.C76F849F@TheKosher.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,dfeeb4f7ea6be38c X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-07-04 12:21:39 PST From: "Michael Rachow" <michael@famrachow.de> Newsgroups: borland.public.jbuilder.java.language References: <3B434ACC.C76F849F@TheKosher.net> Subject: Re: Converting int to string Date: Wed, 4 Jul 2001 21:14:49 +0200 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 NNTP-Posting-Host: 217.227.17.225 Message-ID: <3b436a72_1@dnews> X-Trace: dnews 994273906 217.227.17.225 (4 Jul 2001 12:11:46 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!netnews.com!xfer02.netnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews