It's not really a typecast, you have to use the String.valueOf() static method. It will take a whole host of types and return their string equivalent.
On Wed, Jul 9, 2008 at 6:23 AM, Maryam Naveed <[EMAIL PROTECTED]> wrote: > thnx!! alot:D > type casting is teh laimest thing to do:( > but i think no other option then > > > On Tue, Jul 8, 2008 at 1:36 PM, Muhammad Farhan Bashir < > [EMAIL PROTECTED]> wrote: > >> Salam, >> I think you have already answered your question.Definitely you >> have to type cast the integer to the string if the setText function did not >> take values other than string. >> >> >> >> On Mon, Jul 7, 2008 at 5:04 PM, Maryam Naveed <[EMAIL PROTECTED]> >> wrote: >> >>> hey all!! >>> i have a little question?? >>> how can integers be displayed on the screen?? >>> do i have to type cast it?? >>> i have a simple loop for adding an integer and at the end it displays >>> that value?? >>> but i simply cant do that?? >>> please help meeeeeeeeeeeeeeeeee:D!! >>> regards >>> maryam >>> >>> >>> >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

