删除map中包含password和username的键值对
若是在map中直接删除,会指针错误
Iterator<Map.Entry<String,Object>> it = myMap.entrySet().iterator();
while (it.hasNext()){
Map.Entry<String,Object> entry = it.next();
String key = entry.getKey();
if (key.contains("Password") || key.contains("Username")){
it.remove();
}
}