Remove element from an array

From http://www.programcreek.com/2013/09/top-10-methods-for-java-arrays/