Java List to Double Array toDoubleArray(List list)

Here you can find the source of toDoubleArray(List list)

Description

to Double Array

License

Open Source License

Declaration

public static double[] toDoubleArray(List<Double> list) 

Method Source Code

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

import java.util.Iterator;
import java.util.List;

public class Main {
    public static double[] toDoubleArray(List<Double> list) {
        double[] array = new double[list.size()];
        Iterator<Double> ints = list.iterator();
        int idx = 0;
        while (ints.hasNext()) {
            Double value = ints.next();
            array[idx++] = value.doubleValue();
        }//from w ww . j  a v  a2 s.c o m
        return array;
    }
}

Related

  1. toDoubleArray(final List list)
  2. toDoubleArray(List a)
  3. toDoubleArray(List list)
  4. toDoubleArray(List list)
  5. toDoubleArray(List list)
  6. toDoubleArray(List list)
  7. toDoubleArray(List list)
  8. toDoubleArray(List values)
  9. toDoubleArray(List stringArray)