posted 18 years ago
hi all.
i need to have 2 hashmaps so i can write to a log file what the records look like "before" the update.
i have oldHashMap and newHashMap.
my problem is when i update newHashMap, and use OldHashMap to write to the log file, the "new" values are written to the log file.
what's the best way to copy (by value?) the values in oldhashMap to newHashMap.
I tried putAll() but did not work.
thanks.