Java Array to ArrayList toArrayList(double[] dd)

Here you can find the source of toArrayList(double[] dd)

Description

to Array List

License

Open Source License

Declaration

public static ArrayList toArrayList(double[] dd) 

Method Source Code

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

import java.util.ArrayList;

public class Main {
    public static ArrayList toArrayList(double[] dd) {
        ArrayList v = new ArrayList(dd.length);
        for (int i = 0; i < dd.length; i++) {
            v.add(dd[i]);// w ww.  j a va  2 s.  c o  m
        }
        return v;
    }
}

Related

  1. byteArrayToArrayList(byte[] byteArray)
  2. byteArrayToShortArrayList(byte[] byteArray)
  3. toArrayList( Iterable iterable)
  4. toArrayList(Collection collection)
  5. toArrayList(Collection from)
  6. toArrayList(final T... array)
  7. toArrayList(int[] p)
  8. toArrayList(int[] values)
  9. toArrayList(List list)