public class TestMapKey {
public static void main(String[] args) {
Map<Integer, String> map = new HashMap<Integer, String>();
map.put(1, null);
map.put(2, “马先生”);
System.out.println(“结果” + map.containsValue(“马先生”));
}
}
09-06
118