Forums Register Login
arraycopy() with String[][]

I don't know how to use System.arraycopy() method with 2 dim. arrays.

Lets say i have an existing array:
String existing [10][2] and new array
String newArray[][]= new String[10][2];

now how to use arraycopy() that "newArray" is a copy of "existing"?

You can copy a single at a time........

Kalai Selvan T.

This thread has been viewed 1359 times.

All times above are in ranch (not your local) time.
The current ranch time is
Nov 20, 2018 18:52:37.