Collection<? extends Number> c3;
c3 = new Vector<Integer>();
c3.add(new Integer(3));
c3.add(new Long(4L));
I try:
Integer san = new Integer(3);
also
Number s = (Number)san;
No work?
can u hlp please? Thank you.
Zhao
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---