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.
And when my army is complete, I will rule the world! But, for now, I'm going to be happy with this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database

This thread has been viewed 1432 times.

All times above are in ranch (not your local) time.
The current ranch time is
Feb 20, 2019 08:35:36.