Java tutorial
//package com.java2s; import java.util.ArrayList; import java.util.List; public class Main { /** * @param floats The list of {@link Float}s to be converted to {@link Double}s. * @return A list of {@link Double}s from a list of {@link Float}s. */ public static List<Double> doublesFromFloats(List<Float> floats) { List<Double> doubles = new ArrayList<>(); for (Float f : floats) { doubles.add(f.doubleValue()); } return doubles; } }