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
What is string [] args?
What is a null class?
What is the difference between compile-time polymorphism and runtime polymorphism?
What is the use of put method?
What is the size of boolean variable?
What is size () in java?
What comes to mind when someone mentions a shallow copy in java?
Does sprintf add a null terminator?
What is set string?
What are the types of java?
Can I override protected method in java?
Can we create object of inner class in java?
What is unmodifiable collection in java?
What do you mean by garbage collection used in java?
What is map in java?