Make a List
out of the array with Arrays.asList()
, and call remove()
on all the appropriate elements. Then call toArray()
on the 'List' to make back into an array again.
Not terribly performant, but if you encapsulate it properly, you can always do something quicker later on.