Код: Выделить всё
Map mapThings = new HashMap();
updateMapThings(mapThings, sourceMap); // sourceMap is the original Map which has all the
// values I want to populate mapThings with.
Код: Выделить всё
{
"a" : "A",
"b" : "B",
"c" : "C"
}
Теперь я хотите заполнить MapThings дополнительными ключами/значениями из sourceMap2, поэтому MapThings станет
Код: Выделить всё
{
"a" : "A",
"b" : "B",
"c" : "C",
"d" : "D",
"e" : "E",
"f" : "F"
}
Должен ли я позвонить
Код: Выделить всё
updateMapThings(mapThings, sourceMap2);
Подробнее здесь: https://stackoverflow.com/questions/786 ... nt-methods
Мобильная версия