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
Thanks for everyone's answer; I am just pasting my final chosen solution.
List longObjects = new ArrayList(); long[] longArray2 = ArrayUtils.toPrimitive(longObjects.toArray(new Long[longObjects.size()]));