You can use
JDK > 1.5
Arrays.copyOfRange(Object[] src, int from, int to)
JDK <= 1.5
System.arraycopy(Object[] src, int srcStartIndex, Object[] dest, int dstStartIndex, int lengthOfCopiedIndices);
More Related Contents:
- JAVA: calculate the average between two or more arrays [closed]
- Write a function that will sort a string array using Java
- JAVA ArrayIndexoutofBoundException issue
- Reading String for list of Integers separated by spaces [duplicate]
- Difference between int[] array and int array[]
- Sort an array in Java
- Convert list to array in Java [duplicate]
- Converting array to list in Java
- Convert integer into byte array (Java)
- NullPointerException when Creating an Array of objects [duplicate]
- Accessing members of items in a JSONArray with Java
- How to sort an array of objects in Java?
- How to parse JSON Array (Not Json Object) in Android
- Java, Shifting Elements in an Array
- Why does Collections.sort use Mergesort but Arrays.sort does not?
- Why is System.arraycopy native in Java?
- Add JsonArray to JsonObject
- Java Arrays.equals() returns false for two dimensional arrays
- How to convert JSONObjects to JSONArray?
- How to check if array is already sorted
- java – passing array in oracle stored procedure
- How to access nested elements of json object using getJSONArray method
- how calculate java array memory usage
- Why can I edit the contents of a final array in Java?
- Why are new java.util.Arrays methods in Java 8 not overloaded for all the primitive types?
- Time Complexity for Java ArrayList
- java: Arrays.sort() with lambda expression
- Reverse Array Order
- How to convert JSONArray to List with Gson?
- How to add an element to Array and shift indexes?