I have customized string array for an example:
String[] myArr = {"Zen", "Maruthi","Swift", "Audi"};
I have a tool which will generate array like
String[] output = getCars();//returns {"Swift", "Audi", "Zen", "Maruthi"}
// it should return same as myArr...means {"Zen", "Maruthi","Swift", "Audi"}
I want to sort output arrays to myArr; i am sorting using for loop with comparison of myArr;
So is there any other method to sort customised array?plz help me