import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
public class ListSort {
public static void main(String[] args) {
List list = new LinkedList();
for ( int i = 0 ; i < 9 ; i ++ ) {
list.add( " num " + i);
}
Collections.sort(list); // 顺序排列
System.out.println(list);
Collections.reverse(list); // 倒序排列
System.out.println(list);
}
}