Results 1 to 1 of 1
Thread: loop problem-arrays
- 02-02-2010, 09:44 PM #1
Member
- Join Date
- Feb 2010
- Posts
- 1
- Rep Power
- 0
loop problem-arrays
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
Similar Threads
-
Scanner, while loop and sorting arrays/string?
By RSYR in forum New To JavaReplies: 10Last Post: 04-20-2011, 06:13 PM -
Problem: Arrays and Sorting
By Rhez in forum New To JavaReplies: 7Last Post: 02-03-2010, 02:18 PM -
simple line problem / for loop problem
By helpisontheway in forum New To JavaReplies: 1Last Post: 11-17-2009, 06:12 AM -
Mergin two arrays problem.
By frasifrasi in forum New To JavaReplies: 4Last Post: 07-09-2008, 03:29 PM -
Arrays Problem (Advanced Java...Need Help)
By Zebra in forum New To JavaReplies: 9Last Post: 05-02-2008, 01:26 AM
Bookmarks