Knowledge Walls
John Peter
Pune, Maharashtra, India
Sort an Arraylist in Ascending and Descending order example with JAVA
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class ListSorting {
    public static void main(String args[]){
        List<String> dataList = new ArrayList<String>();
        //Ascending order of List of Strings
        System.out.println("Ascending Order");
        //Descending order of List of Strings
        System.out.println("Decending Order");
Previous Topics
Previous lessons of current book.
Computer software engineer articles of One day One Thing to Know
Best Lessons of "One day One Thing to Know"
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details