【发布时间】:2020-02-20 09:42:51
【问题描述】:
对于给定的外部hashtable key,如何获取内部HashTable 的整数值
HashMap<Integer, String[]> map;
Hashtable<Integer,Hashtable<String,Integer>> h =
new Hashtable<Integer,Hashtable<String,Integer>>();
for(int z = 0;z<Integer.MAX_VALUE;z++) {
String temp4 = map.get(k)[j];
h.put(z, new Hashtable(){{put(temp4,j);}});
}
【问题讨论】:
-
你能写出这个答案解决了你的问题还是说出了什么问题?回复有助于详细说明答案
-
对不起,我尝试了其他方法来解决这个问题。
-
因此您可以将其作为另一个解决方案发布。
-
抱歉耽搁了,我的解决方案是针对我的要求的
标签: java dictionary collections hashmap