Help!Thanks

hi there,

I have a simple question. If I have two vectors, V1 and V2. If I want to give the values in V2 to V1, I use V1=V2. But at this time, V1 and V2 use the same reference. If I clear V2, the values in V1 are also cleared. So what should I do to keep the values in V1, and at the same time clear V2? Thanks so much!

[332 byte] By [Lara1983a] at [2007-11-26 18:43:23]
# 1
Vector V2 = new Vector(V1);
FUN_ONEa at 2007-7-9 6:17:17 > top of Java-index,Java Essentials,New To Java...