list的sort排序方法 List<String> words , java 1.8 及以上用lambda表達式 1. Collections.sort(words,new Comparator<Stri ...