Hello,
After having a list created from objects of a certain Class. I wish to sort the contents. How do I do this?
This is my case:
_bkgList = new ArrayList();
for(int i = 0; i<10; i++){
BookingResponse bkngRes = new BookingResponse();
bkngRes.setAwbNum(awbNum);
bkngRes.setOrigin(origin);
_bkgList.add(bkngRes);
}
As you can see, I have created the list with items as they get added. Now, I wish to display this list in a manner such that the items are displayed with (for eg) the Origin as key sorted in a alphabetical order. How can I get this implemented. Please suggest.
Thanks,
Ashok.