Java List to Double Array toDoubleList(double[] array)

Here you can find the source of toDoubleList(double[] array)


to Double List


Open Source License


public static List<Double> toDoubleList(double[] array) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.ArrayList;

import java.util.List;

public class Main {
    public static List<Double> toDoubleList(double[] array) {
        List<Double> result = new ArrayList<Double>(array.length);
        for (int i = 0; i < array.length; i++) {
            result.add(i, array[i]);/*from w ww. ja  va 2s  .c  om*/
        return result;


  1. toDoubleArray(List list)
  2. toDoubleArray(List values)
  3. toDoubleArray(List stringArray)
  4. toDoubleArray(List values)
  5. toDoubleList(double[] array)
  6. toDoubleList(double[] doubleArray)
  7. toDoubleList(Double[] in)
  8. toDoubleList(final E[] array)
  9. toDoubleList(List values)