Hi,
When using autoboxing, how can I find out what the data type is inside
the elements:
Vector<object> v = new Vector<Object>();
v.add( "Hello World" );
v.add( 10 );
v.add( 11.0 );
For example, if I need to iterator each element in the vector here,
how can I find out the type of the object here. I cannot do the
instanceOf, since the element here do not share the interface.
Thx.
Lawrence
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en