Array question

I have 2 string[]

String[] standard = new String[]{"Ronnie", "Jack", "Lori", “Max”, “Tricky”};
String[] temp = new String[]{"Lori", “Max”, "Jack", “Mary”};


Here's are the thing i want to do:

* Use Array "standard" as the standard for Array "temp" to add any name(s) that Array "standrad" has and Array  "temp" doesn't.  Remove any name(s) from Array "temp" that  Array "standrad" doesn't has.  Then sort Array "temp", so that the order and the number of names should be identical between Array "standard" and Array "temp".  Thx
musclejackAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

musclejackAuthor Commented:
Example please. thx
0
Mike TomlinsonMiddle School Assistant TeacherCommented:
What an odd question...

If you remove from temp, anything that is not in standard, AND then add to temp anything in standard not already in temp, THEN what you have done is made a COPY of standard!

Why not just CLONE standard using the built-in Clone() method of the Array class, and then sort the Array using the built-in Sort() method:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemarrayclassclonetopic.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemarrayclasssorttopic.asp

Your question only makes sense if this is a homework assignment.  In which case you need to show us your attempt and ask specific questions about the problems you are having.  We can't do homework assignments for people.

Apologies if this is NOT homework...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.