r/learnjava • • Oct 18 '17

Fastest way to copy 2d array?

Is there a way to do it without using a for loop which just inserts indexes to a new array?

1 Upvotes

3 comments sorted by

View all comments

2

u/sparkas Oct 18 '17

Is there a reason you don't want to use a for-loop? Is it for an assignment?

2

u/MonochromaticPanda Oct 18 '17

I think he might just be looking for a less expensive means of doing so rather than a nested for loop