1

Possible Duplicate:
How to effectively copy an array in java?

Is there a benefit to using Arrays.copyOf() or System.arraycopy()? Why should I use one or the other, and where?

Community
  • 1
  • 1
Jakob Weisblat
  • 7,450
  • 9
  • 37
  • 65

1 Answers1

1

You should take a look at these two links:

copyOf

arraycopy

As vulcan suggested above, this explains it very nicely: What is more efficient: System.arraycopy vs Arrays.copyOf?

Community
  • 1
  • 1
mikesjawnbit
  • 106
  • 6