只能循环了for (int i = 0; i < list.size(); i++) { if (map.containsKey(list.get(i))) { list.set(i, map.get(list.get(i))); } }