摘要: 1 class Person{ 2 private int age; 3 public void setAge(int para){ 4 age = para; 5 } 6 public int getAge(){ 7 return age; 8 } 9 } 10 public static voi 阅读全文
posted @ 2016-08-24 22:10 destinying 阅读(704) 评论(0) 推荐(0) 编辑
摘要: 1.如下的方式删除键值对不会抛出异常 2.否则直接通过finalResult.remove(key)修改hashmap时会在remove()执行之后抛出异常 阅读全文
posted @ 2016-08-24 17:18 destinying 阅读(3052) 评论(0) 推荐(0) 编辑