Is it not possible to add a double value to a Vector? This is what I'm trying (basically):
Vector vecTest = new Vector();
double mynumber = 1.1;
vecTest.add(mynumber);
I'm getting the following error:
method(add)double not found in class java.util.Vector
I am importing java.util.Vector and I can add strings to vecTest. What's the deal?
I'm still pretty new to Java, so please be kind.![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Thanks!
Rachel
Vector vecTest = new Vector();
double mynumber = 1.1;
vecTest.add(mynumber);
I'm getting the following error:
method(add)double not found in class java.util.Vector
I am importing java.util.Vector and I can add strings to vecTest. What's the deal?
I'm still pretty new to Java, so please be kind.
Thanks!
Rachel