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