Here you can find the source of dotProductValue(List extends Number> oper1, List extends Number> oper2)
public static Number dotProductValue(List<? extends Number> oper1, List<? extends Number> oper2)
//package com.java2s; import java.util.List; public class Main { public static Number dotProductValue(List<? extends Number> oper1, List<? extends Number> oper2) { return adjuestedDotProductValue(oper1, 0.0, oper2, 0.0); }//ww w . j a v a 2s . c o m public static Number adjuestedDotProductValue(List<? extends Number> oper1, Number adjustedOper1, List<? extends Number> oper2, Number adjustedOper2) { double dot = 0.0; for (int i = 0, j = oper1.size(); i < j; i++) { dot += (oper1.get(i).doubleValue() - adjustedOper1.doubleValue()) * (oper2.get(i).doubleValue() - adjustedOper2.doubleValue()); } return dot; } }