On Thu, Jan 1, 2009 at 7:10 PM, Mike James <[email protected]> wrote:
> Got it - so I should do this...
>
> const char[] array1= "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
> char[]  array2 = new char[array1.length];

Just "char[] array2 = array1.dup;"

.dup duplicates the array by creating a new array the same length and
copying the data over.

Reply via email to