Java List to Array listToArray(List list)

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

Description

list To Array

License

Open Source License

Declaration

private static double[] listToArray(List<Double> list) 

Method Source Code

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

import java.util.List;

public class Main {
    private static double[] listToArray(List<Double> list) {
        double[] arr = new double[list.size()];
        for (int i = 0; i < list.size(); ++i)
            arr[i] = list.get(i);/*from  w w w. j  a  va2s. co m*/
        return arr;
    }
}

Related

  1. listToArray(List list)
  2. listToArray(List list)
  3. listToArray(List bytes)
  4. listToArray(List list)
  5. listToArray(List doubles)
  6. listToArray(List list)
  7. ListToArray(List list)
  8. listToArray(List list)
  9. ListToArray(List> values)