Here you can find the source of diffFloats(List
public static List<Double> diffFloats(List<Float> a, List<Float> b)
//package com.java2s; //License from project: Open Source License import java.util.ArrayList; import java.util.List; public class Main { public static List<Double> diffFloats(List<Float> a, List<Float> b) { List<Double> diffs = new ArrayList<>(); for (int i = 0; i < a.size(); i++) { diffs.add((double) a.get(i) - b.get(i)); }//from w w w . java2 s . c om return diffs; } }