Article View: borland.public.jbuilder.java.language
Article #7247Re: Converting int to string
From: Michael Rachow
Date: Thu, 05 Jul 2001 09:41
Date: Thu, 05 Jul 2001 09:41
38 lines
2188 bytes
2188 bytes
Ohh sorry, > Seems to to be such a thing one should pull out by ones own. I forgot completly to add here: when one starts with Java. If one had to understand how generic types and their wrapper classes play together one learns a lot on Java. By just answering your question I don't wanted to remove your chance to dive deeper into Java. Sorry again for that incomplete sentence. "Michael Rachow" <michael@famrachow.de> schrieb im Newsbeitrag news:3b436a72_1@dnews... > 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:
<3b443a15$1_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!sn-xit-01!supernews.com!newshub2.rdc1.sfba.home.com!news.home.com!enews.sgi.com!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3B434ACC.C76F849F@TheKosher.net> <3b436a72_1@dnews>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-05 03:00:53 PST From: "Michael Rachow" <mrachow@BeraCom.de> Newsgroups: borland.public.jbuilder.java.language References: <3B434ACC.C76F849F@TheKosher.net> <3b436a72_1@dnews> Subject: Re: Converting int to string Date: Thu, 5 Jul 2001 11:41:05 +0200 Lines: 40 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 62.155.188.104 Message-ID: <3b443a15$1_2@dnews> X-Trace: dnews 994327061 62.155.188.104 (5 Jul 2001 02:57:41 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!sn-xit-01!supernews.com!newshub2.rdc1.sfba.home.com!news.home.com!enews.sgi.com!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews