Hi,

I just was looking at the code given in a previous email to the list.

The code is :-

s4 = new String( charArray, 6, 4 );

Can someone please explain to me why there are 3 parameters (charArray, 6,
4 ) in this constructor instead of the normal 1 ? And what do the second and
third parameters (6 and 4) signify ?

Also; can someone explain how an array of characters can become a String, as
it has in this example ? I know that a String can be thought of as an array
of characters but I'm a bit confused as to just being able to make a
charArray, and String ?




____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm

Be respectful! Clean up your posts before replying
____________________________________________________

Reply via email to