Here you can find the source of sort(List
public static <T extends Comparable<? super T>> void sort(List<T> list)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { public static <T extends Comparable<? super T>> void sort(List<T> list) { }/* w w w . j a v a 2s .c o m*/ }