Java – Removing an element from an Array (Java)

arrayselementjava

Is there any fast (and nice looking) way to remove an element from an array in Java?

Best Answer

You could use commons lang's ArrayUtils.

array = ArrayUtils.removeElement(array, element)

commons.apache.org library:Javadocs