create a method that takes in arraylist and sort it code example Example: how to sort arraylist Collections.sort(coll); -> helps sort an arraylist.