I have the following Vector
and at runtime I want to pass it an Integer
, Character
, or Float
:
public static Vector<Object> interestingValues = new Vector<Object>();
At the same time I want to get an Integer
, Float
, or Character
from it, so there are two things:
Will they retain the specific
Integer
/Float
/Character
type in theObject
Vector
, or they all will be stored in the form ofObject
?How can I retrieve
Integer
objects from thisVector
?