how to set string array value to some value ?

hello,

how can I initialize string array value to some when I initialize string array.

String[] initValue ={"value "};

String[] stateArray =new String [255] ;

inclass constructor,

I initialize the string array with that first array value.

stateArray = initValue;

but, when i check the value using ,

System.out.println ( " StateArray Value == " + stateArray ) ;

it show the value something , not 'value' string.

how can I give initial value to string array.

[680 byte] By [rameshsa] at [2007-11-27 4:57:17]
# 1

if what you want is just ONE string, there is no point in using an array ; an array is supposed to store MANY strings

and if you cant to see the content "value", it's not stateArray but stareArray[0] you must print

in your code, what you're asking for is not a string of 255chars length, but 255 strings! be careful, you're not in c! :p

calvino_inda at 2007-7-12 10:12:42 > top of Java-index,Java Essentials,Java Programming...