I try to sort a double array but with another string array: It means I have this:
Double[] values = {6.3, 5.5 , 7.0};
String [] names ={"samah","Dalal", "Mohammad"};
samah has 5.5 , Dalal has 6.3 and Mohammad has 7.0
If I want to sort double values, it is simple using this:
Arrays.sort(values);
In this case the result is {5.5,6.3,7.0}
But how I will keep the names array with this sort??
result must be: {"Dalal","samah","Mohammad"}
Thanks