My need is to sort the ArrayList of Strings, based on specific index range. For example I have following items in list: [\"abc\", \"xyz\", \"pqr\" , \"asd\"]Now
[\"abc\", \"xyz\", \"pqr\" , \"asd\"]
You should do
Collections.sort(yourList.subList(1, yourList.size()));
Since the List.subList method returns a view of the list, modifications done by Collections.sort will affect the backing list as well.
List.subList
Collections.sort