Java List Sort sort(List list)

Here you can find the source of sort(List list)

Description

sort

License

Apache License

Declaration

public static <T extends Comparable<? super T>> void sort(List<T> list) 

Method Source Code


//package com.java2s;
/*/*w w w  . j  a va 2s  .co m*/
 * Commons-Utils
 * Copyright (c) 2017.
 *
 * Licensed under the Apache License, Version 2.0 (the "License")
 */

import java.util.*;

public class Main {

    public static <T extends Comparable<? super T>> void sort(List<T> list) {
        Collections.sort(list);
    }
}

Related

  1. sort(List lists)
  2. sort(List list)
  3. sort(List list)
  4. sort(List list)
  5. sort(List list)
  6. sort(List list)
  7. sort(List list, Comparator c)
  8. sort(List list, Comparator comparator)
  9. sort(List list, Comparator comparator)