Here you can find the source of sort( S list)
private static <E extends Comparable<? super E>, S extends List<E>> S sort( S list)
//package com.java2s; //License from project: Open Source License import java.util.Collections; import java.util.List; public class Main { private static <E extends Comparable<? super E>, S extends List<E>> S sort( S list) {//from www . j a v a 2 s.com Collections.sort(list); return list; } }