Re: What's wrong with this sentence?
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 31 Oct 2007 17:52:31 GMT
On Wed, 31 Oct 2007 17:49:51 GMT, Roedy Green
<see_website@xxxxxxxxxxxxxxxxxxxx> 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:
HashMap<String, ItemInfo> userCart = (HashMap<String, ItemInfo>)
session.getAttribute("userCart");
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.
- References:
- What's wrong with this sentence?
- From: JTL.zheng
- Re: What's wrong with this sentence?
- From: Roedy Green
- What's wrong with this sentence?
- Prev by Date: Re: What's wrong with this sentence?
- Next by Date: Re: Question: Simple GUI Updater Thread
- Previous by thread: Re: What's wrong with this sentence?
- Next by thread: Re: What's wrong with this sentence?
- Index(es):
Relevant Pages
|