If ever you face the need of ‘boxing’ the elements of a primitive array into an array of Objects, this might be handy: Java | copy |? public static Object[] convertPrimitiveArray(final Object array) { final int arrayLength = Array.getLength(array); final Object[] result = (Object[]) Array.newInstance(Object.class, arrayLength); for (int i = 0; i < arrayLength; i++) { Array.set(result, i, [...]

