读阿里巴巴手册记录1

阿里巴巴手册问题描述大概如下 List<String> list= new ArrayList(50); list.add("1"); list.add("2"); for (String string : list) { if("1".equals(string)){ list.remove(string); }} 如果把1换成2会不会出错 结果显然不是的在把 抛出异常 原因       每次在
相关文章
相关标签/搜索