How do I convert Double[] to double[]?

后端 未结 8 1750
没有蜡笔的小新
没有蜡笔的小新 2020-11-28 09:04

I\'m implementing an interface that has functionality similar to a table that can contain an types of objects. The interface specifies the following function:



        
8条回答
  •  感情败类
    2020-11-28 09:29

    You can utilise the ArrayUtils to convert

    Double[] d; // initialise
    double[] array = ArrayUtils.toPrimitive(d);
    

    No need of looping the entire data.

提交回复
热议问题