I have a java array. I want to remove first `d` items from array and store it to some other array. I am able to store but not able to remove. My Code

```
private static void itemRemove(int[] inputArr, int d) {
        int newArr [] = new int[d];
        for(int i=0;i<d;i++){
            newArr[i] = inputArr[i];
        }

        itemPrint(inputArr); 
        itemPrint(newArr);
    }

```

So in example suppose I have array
`inputArr` is `[1,2,3,4,5]` and my `d` is `2`

I am able to add in to `newArray` `[1,2]` but not able to remove from `inputArr`. 

Also once I remove two element from `inputArr` which is having size 5 so I can add two more element. Can anybody give some idea how to add element.