prithvi pandey wrote:can i use arrays.sort method to achieve the same or any other way.
Yes. The Arrays.sort() method will work, but you will need to provide a custom comparator. The default
string comparator uses ASCII ordering, so "A2" comes after "A11", which is probably not what you want.
Henry