Most people will tell you to use Lists instead, however that's a cop-out and doesnt really answer the question (but they're probably right)
if you really need to remove an element from an array, and you can't use lists or any other libraries, I'm pretty sure the only way is to create a new array and replace the old one with it.
below is an example of a function that you could use to do that
int[] removeAtIndex(int[] inputArray, int index){
int[] outputArray= new int[inputArray.length-1];
for(int i=0;i
↧