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
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
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER