Delete elements from an array given an array of indices

/ Published in: Java
Save to your folder(s)

A rough "it works" way to delete elements from an array given the array of indices to delete. A new array is created by copying over the remaining elements.

Any suggestions on how to make this more efficient appreciated :)

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.