Here you can find the source of doubleArrayToBigDecimalList( double[] array)
public static List<BigDecimal> doubleArrayToBigDecimalList( double[] array)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; public class Main { public static List<BigDecimal> doubleArrayToBigDecimalList( double[] array) { List<BigDecimal> list = new ArrayList<BigDecimal>(); for (double item : array) { list.add(new BigDecimal(item)); }//from w ww .ja va 2 s.com return list; } }