Here you can find the source of toPrimitiveArray(List
Parameter | Description |
---|---|
input | a parameter |
public static double[] toPrimitiveArray(List<Double> input)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { /**//from w ww . ja va2 s . c o m * toPrimitiveArray * * @param input * @return */ public static double[] toPrimitiveArray(List<Double> input) { // create array double[] output = new double[input.size()]; // copy values for (int i = 0; i < input.size(); i++) { output[i] = input.get(i); } // return output return output; } }