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