嗨,我对此课程有疑问:
public class JarClassMethod extends HashMap<String,HashMap<String, List<String>>> {
public JarClassMethod() {
super();
}
public List<String> get(String jar,String classe) {
return get(jar).get(classe);
}
public void put(String jar, String classe, List<String> metodi) {
Map<String,List<String>> map2 = new HashMap<>();
map2.put(classe, metodi);
this.put(jar, (HashMap<String, List<String>>) map2);
}
}
如果调用放入for循环中,则我仅在MAP对象中查看最后一个值!
Thks问候