posted 16 years ago
Thnxs for the reply.I am beginning to see the picture now.But the fact is that i am completely unfamiliar with the sort method and the comparator.Lets say that my Arraylist is called L.If i do Collections.sort(L) what that would do???i just want to print the items based on the title field.there are other fields too but none of them are important.just the title field.the comparator how it is used in such a situation???can you please show me a txt file that shows the comparator actual use???Sorry if am being very annoying.:-(