×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Feb 2011
    Posts
    73

    Arrow How to convert array of Objects into array of Strings?

    Hi,
    I have an array which is type of Object and it's contents are Strings! I want to put it's contents into the other array which is type of String, to convert them I have used toString() method and to put the first array's content into the other, I Iterate over the first array and put them into the second one but when I want to use the content of the String Array it's contents are printed wrong!I appreciate if anyone tell me, How could I convert Object into String?

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: How to convert array of Objects into array of Strings?

    when you say that "contents are printed wrong", what do you see and what are you expecting to see? Could you please be more specific?

    Hartti

  3. #3
    Regular Contributor
    Join Date
    Feb 2011
    Posts
    73

    Red face Re: How to convert array of Objects into array of Strings?

    Thank you for your reply,I solved my problem!

Similar Threads

  1. How to convert Strings into byte array
    By prathi in forum Symbian
    Replies: 10
    Last Post: 2011-01-03, 14:21
  2. Convert an muttable image into Array of Bytes
    By nilanchalapanigrahy in forum Mobile Java General
    Replies: 14
    Last Post: 2010-06-19, 10:23
  3. How to convert image into byte array
    By dhiraj.deka in forum Mobile Java General
    Replies: 6
    Last Post: 2009-11-23, 09:23
  4. Replies: 7
    Last Post: 2009-03-31, 20:53
  5. Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×