Type casting a Number to double
Use Number.doubleValue():
y2 = molWt[x].doubleValue();
instead of trying to cast. Number
cannot be cast to a primitive double
.
Use Number.doubleValue():
y2 = molWt[x].doubleValue();
instead of trying to cast. Number
cannot be cast to a primitive double
.