Link to home
Create AccountLog in
Avatar of musclejack
musclejack

asked on

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
Avatar of musclejack
musclejack

ASKER

Example please. thx
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer