List
public static List<String> deepcopy(List<String> src) {
ByteArrayOutputStream byteout = new ByteArrayOutputStream();
List<String> dest = new ArrayList<String>();
try {
ObjectOutputStream out = new ObjectOutputStream(byteout);
out.writeObject(src);
ByteArrayInputStream bytein = new ByteArrayInputStream(byteout.toByteArray());
ObjectInputStream in = new ObjectInputStream(bytein);
dest = (List<String>) in.readObject();
} catch (Exception e) {
}
return dest;
}
map
map.putAll()