for (int n < ArrayList.length; ...) {
for (int i < ArrayList[n].size() ....) {
yourHashMap.put(yourKey, get(int index));
}
}
for (int i < ArrayList[n].size() ....) {
yourHashMap.put(yourKey, get(int index));
}
}
解决方案 »
- 问个比较小白的问题
- 问一个stringbuffer的问题,求大牛帮忙解答
- 问问动态语言,脚本语言的区别是什么?
- 使用apt时需在classpath里设置tools.jar,怎么设置?
- 数组问题 报错!!!!!!!!!!!!!!!!!!!!!!!!!!
- 关于Runtime.getRuntime().exec(command)备份数据库问题
- java开发工作好做吗
- 菜鸟问题:怎样实现键盘事件?(外一则)
- 新手!各位大侠多多关照! e-mail:[email protected]
- 请教高手,关于jbuilder6中如何指定JNI中的DLL?
- 关于jbuild ?
- 有什么安装程序制作工具比较易用吗?非常急,在线等待。
随便什么东西,只要不是基本类型。要不就搞个Integer吧,累加就行了。
Associates the specified value with the specified key in this map. If the map previously contained a mapping for this key, the old value is replaced.
是说将两个相联系的value和key插入到一个hashmap中,还是让一个值与原来hashmap中已有的key相关联?可以解释一下吗?
将特定的value与key关联起来,如果map里面已经有这个key,那么原来key所对应的value将会被替换!