判断下列程序是否能正常运行,如果能,写出运行结果,如果不能,写出错误原因并进行纠正。import java.util.*;import java.util.Map.*;public class Demo {public static void main(String[] args) {Map map = new HashMap();map.put(1, "Tom");map.put(2, "Lucy");map.put(3,"Annie");Set keySet = map.keySet();Iterator it = keySet.iterator();while (it.hasNext()) {Object key = it.next();System.out.println(key);map.remove(key);}}}