首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java面试 >

Hashtable 和Vector的有关问题

2011-11-16 
Hashtable 和Vector的问题privateVectortagHistorynewVector()privateVectorcountHistorynewVector()H

Hashtable 和Vector的问题
private   Vector   tagHistory=new   Vector();
private   Vector   countHistory=new   Vector();
Hashtable   tagCounts   =   (Hashtable)countHistory.elementAt(tagHistory.size());
这句话该怎么理解呢?vector的值能复给hashtable么?

[解决办法]
Vector里面可以放任何东西。

但你的Vector都还是空的

热点排行