This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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:
subject: arraycopy() with String[][]
It's not a secret anymore!