java sort out an array to a new arraylist code example Example: how to sort arraylist Collections.sort(coll); -> helps sort an arraylist.