import
java.util.ArrayList;
java.util.Collections;
java.util.List;
public
class
ListSorting {
static
void
main(String args[]){
List<String> dataList =
new
ArrayList<String>();
dataList.add(
"Ball"
);
"Apple"
"Dog"
"Cat"
//Ascending order of List of Strings
Collections.sort(dataList);
System.out.println(
"Ascending Order"
System.out.println(dataList);
//Descending order of List of Strings
Collections.sort(dataList,Collections.reverseOrder());
"Decending Order"
}
Do you want to delete a "" lesson. Warning! This delete will remove all it's sub lessons and contents.
Do you want to delete a "" sub lesson. Warning! This delete will remove all it's contents.
Do you want to delete content.
Do you want to remove selected book from favorite books.
Do you want to delete selected author from your authors list.