Suppose there is an array list [10,5,20,19,15,24].Print them
in ascending & descending order in collection framework
concept ???
Answer Posted / sagar
Use
Collections.sort(arraylist)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How do you add an element to an arraylist in java?
What is a instance variable in java?
What is hash in java?
What are register variables what are the advantages?
What is boolean keyword in java?
what is the significance of listiterator in java?
What is threaded programming and when is it used? : Java thread
What are the different types of garbage collectors in java?
What is the synchronized method modifier?
What is final?
How much ram can a 64 bit processor theoretically?
What is class variable java?
Can a variable be local and static at the same time?
What is the difference between Java and C++?
Distinguish between a predicate and a function?