Actually, Vectors and other Collections can store any type of Object, not primitives though.
Type: Posts; User: javapenguin
Actually, Vectors and other Collections can store any type of Object, not primitives though.
Also, your Vector should have the data type it stores in <> after the word Vector.
And it needs the wrapper class, Float, Integer, String, Character, Boolean, Long, Short, Double, etc. Not...
If you call the Vector's add() function, it should store it. Not sure if yours is right now.
Edit: No, it appears that it won't. You aren't storing anything.
Vectors are expandable.