How do I convert array of object to array of primitive?
Category: commons.lang, viewed: 38K time(s).
In the code example below we demonstrate the ArrayUtils.toPrimitive() method to convert an array of Integer object to an array of its primitive type. Besides converting array of Integer objects this method is overloadded to accept other types of object array.