Title: AW: How to do casting ?
Thank you all.
Its my casting working already...
I appreciate all the help.
Bye.
-----Original Message-----
From: Christian Schulz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 19, 2000 6:10 PM
To: [EMAIL PROTECTED]
Subject: AW: How to do casting ?

Hi !

Wouldn't it be more elegantly to use:

int i = 10;
String s = (new Integer(i)).toString();

?

Bye bye

        Christian

-----Urspr�ngliche Nachricht-----
Von: deneb [mailto:[EMAIL PROTECTED]]
Gesendet: Samstag, 19. Februar 2000 10:10
An: [EMAIL PROTECTED]
Betreff: Re: How to do casting ?


casting int to string !!!!

u surprise me again

do u mean
int i =0;
String s = (int) i;

try
String s = "" + i;

deneb

Reply via email to