You are trying to add a list of lists to a list that accepts a list. (not after the edit I see)
Or maybe a little more confusing:
Your num list can only add List<Number>, you are trying to add a List<List<Double>>.
, , , .
num :
List<List<? extends Number>> num = new ArrayList<List<? extends Number>>();
:
num.add(d);
:
num.add(doub);