遍历ArrayList时如何正确移除一个元素
错误写法示例一: public static void remove(ArrayList<String> list) { for (int i = 0; i < list.size(); i++) { String s = list.get(i); if (s.equals("bb")) { list.remove(s); } } }错误写法示例二: public static void remove(ArrayList<