How do i convert Long[] to long[]? For example i know how to convert if it is not array as below.
long ll = (Long)Object[1].longValue()
But how
using java 8 streams:
public static long[] unboxed(final Long[] array) { return Arrays.stream(array) .filter(Objects::nonNull) .mapToLong(Long::longValue) .toArray(); }