wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes arraycopy() with String[][] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "arraycopy() with String[][]" Watch "arraycopy() with String[][]" New topic

arraycopy() with String[][]

Juhan Voolaid
Ranch Hand

Joined: Nov 18, 2003
Posts: 179

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"?
Kalai Selvan
Ranch Hand

Joined: Jul 07, 2004
Posts: 79

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

Kalai Selvan T.
Juhan Voolaid
Ranch Hand

Joined: Nov 18, 2003
Posts: 179
I agree. Here's the link: http://aspose.com/file-tools
subject: arraycopy() with String[][]
Similar Threads
expanding an array
transparently expanding array
Main Thread and Swing Thread
Getting 1Demsion Array from a 2Demsion Array