SyntaxFix
Write A Post
Hire A Developer
Questions
Use copyOfRange method from java.util.Arrays class:
int[] newArray = Arrays.copyOfRange(oldArray, startIndex, endIndex);
For more details:
Link to similar question