final Long[] result = new Long[array.length]; for (int i = 0; i < array.length; i++) { result[i] = new Long(array[i]);
final Character[] result = new Character[array.length]; for( int i = 0; i < array.length; i++ ){ result[i] = new Character( array[i] );
    public static Long[] toObject(long[] array) {        if (array == null) {            return null;        } else if (array.length == 0) {            return EMPTY_LONG_OBJECT_ARRAY;        }        final Long[] result = new Long[array.length];        for (int i = 0; i < array.length; i++) {            result[i] = new Long(array[i]);        }        return result;    }