how to sort all elements in arraylist by value code example Example: sort an arraylist of integer //METHOD RETURNS VOID Collections.sort(arrayList);