storing int into a string array

plz anyone can help me? on the following fact
i want to store like that
suppose, String a[];
now i want to store
a[0]=1
a[1]=2
.
.
a[29]=30

Comments

  • : plz anyone can help me? on the following fact
    : i want to store like that
    : suppose, String a[];
    : now i want to store
    : a[0]=1
    : a[1]=2
    : .
    : .
    : a[29]=30
    :

    There are basically 2 ways to do it, look at the String class constructors. You can also create a string with primitive types by doing this: "" + someVar(or a numerical value)
    [italic][blue]Just my 2 bits[/blue][/italic]

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion