Map<Integer,String> map = new HashMap<Integer,String>();
map.put(90,"语文");
map.put(82,"数学");
map.put(77,"英语");
map.put(83,"物理");
map.put(93,"生物");
map.put(70,"体育");
map.put(98,"计算机");
Set<Integer> kyeset = map.keySet();TreeMap.keyset方法返回的是接口set,为什么该set里面可以储存对应的值,能够存储值的不是只有对象吗?接口不是不能当对象使用的吗?
如题,高手回答下。谢谢了