Re: What's wrong with this sentence?



On Wed, 31 Oct 2007 01:17:29 -0700, "JTL.zheng" <jtl.zheng@xxxxxxxxx>
wrote, quoted or indirectly quoted someone who said :

Hashtable<String, ItemInfo> userCart = (Hashtable)
session.getAttribute("userCart");

What happens when you cast it to a generic like this:

Hashtable<String, ItemInfo> userCart = (Hashtable)
session.getAttribute("userCart");
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.



Relevant Pages