TypeCasting Array

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • snowfall
    New Member
    • Aug 2007
    • 56

    #1

    TypeCasting Array

    Hi all,

    How to TypeCast a String Array to Integer Array??


    TIA...
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by snowfall
    Hi all,

    How to TypeCast a String Array to Integer Array??


    TIA...
    How would you cast a String to an Integer?

    Comment

    • snowfall
      New Member
      • Aug 2007
      • 56

      #3
      Originally posted by r035198x
      How would you cast a String to an Integer?
      new Integer(Integer .parseInt(Strin gName))

      In my program my string array has numbers..
      ie) String a[]={"1","2","3" };

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by snowfall
        new Integer(Integer .parseInt(Strin gName))

        In my program my string array has numbers..
        ie) String a[]={"1","2","3" };
        You'll need to loop through the array doing that for each of the strings.

        Comment

        Working...