using comparable to sort an arraylist of strings java code example Example: sort an arraylist of integer //METHOD RETURNS VOID Collections.sort(arrayList);