Here is a simple one-liner:
Double[] objects = ArrayUtils.toObject(primitives);
You will need to import Apache commons-lang3:
import org.apache.commons.lang3.ArrayUtils;
Here is a simple one-liner:
Double[] objects = ArrayUtils.toObject(primitives);
You will need to import Apache commons-lang3:
import org.apache.commons.lang3.ArrayUtils;