Hi ,

I am a new to java and also not very experienced on programming.
I need to compare two arrays as for eg:
A1={"VA","VB","VC"} //old
A2={"VA","VB","VC","VD"}//new

compare A1 and A2; if the size of A2 is greater than A1 then add the elements from A2 to A1
if A1 and A2 are equal size then compare elements whether they are same or not ,

if A2={"VA","VB"} then remove VC from A1,...

anyhow i want to make two arrays same i.e update old from new one.. how to do this in java

any suggesstions

thank you