|
|
@ -13,6 +13,10 @@ public class ArrayManipulation { |
|
|
|
return arr; |
|
|
|
|
|
|
|
} |
|
|
|
public static int[] removeFirst(int[] arr) { |
|
|
|
int[] result = new int[3]; |
|
|
|
return int[] result = Arrays.copyOfRange(arr, 1); |
|
|
|
} |
|
|
|
public static void main(String[] args) { |
|
|
|
|
|
|
|
int[] arr = {1,2,3,4,5}; |
|
|
|