A List contains objects that you can order according to a natural order using the static method Collections.sort(List list) if the objects implement the Comparable interface.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.