Hi Guys,
I have an arraylist named c like the below,
I sort it by converting it into a int array
But then, i have a arraylist like below,
The above array is something like, [name of the site,response time,name of the site,response time,...]
All i want to do is to sort the arrylist with respect to the response time and arrange the List accordingly.
A sample output am looking for is like below,
Here yahoo is in the first element becasue its response time is the least
All i'm trying to do is to access different sites and find out its response time and finally display the sites with the least responding time as the first and then the next least and so on...
Kindly suggest me a way to sort this.. Thank you...
Regards,
Freddie
I have an arraylist named c like the below,
Code:
[654,6465,98798,321123,874,654645];
Code:
Arrays.sort(c);
Code:
[google,5462,yahoo.2245,aol,8896]
All i want to do is to sort the arrylist with respect to the response time and arrange the List accordingly.
A sample output am looking for is like below,
Code:
[yahoo,2245,google,5462,aol,8896]
All i'm trying to do is to access different sites and find out its response time and finally display the sites with the least responding time as the first and then the next least and so on...
Kindly suggest me a way to sort this.. Thank you...
Regards,
Freddie
Comment