SyntaxFix
Write A Post
Hire A Developer
Questions
You can simply do this:
System.arraycopy(initialArray, 0, newArray, 0, initialArray.length);