So I have a array with elements [10] that I add from the top of the array so something like this
["","","","","",5,4,3,2,1]
and when I remove a element I wanted to shift up ones below it to take its place
["","","","","",5,3,2,1]
public void moveUP(int location, int Arraysize) { System.arraycopy(vehicle, 0, vehicle, 0, location + 1); } I tried using the array copy but when I check the debugger the elements are remaining the same.
edit: forgot to mention that location was the element I planned on removing.
forloop, that will start atlocationand moves "to the left" to shift the elements "to the right". And on index0it inserts an empty string.