你的位置:首页 > 信息动态 > 新闻中心
信息动态
联系我们

map的get方法使用

2021/12/8 20:05:19
public static void main(String[] args) {
Map<Integer, Object> map = new HashMap<Integer, Object>();
map.put(1,111);
map.put(2,222);
String s = "1";
Object o = map.get(s);
sout(0)
}