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 the requirement of thread in java?
What do you understand by the term string pool?
What does null mean in java?
Is break statement can be used as labels in java?
Q1.A. Write note on “The class path Environment Variable”? B. Which are different kinds of source code? Q2.A. How to create an interface? B. Why convert an applet to an application? Q3.A. How to use Media tracker Class. B. How to use string tokenizer class. Q4 A. Explain the overview of UDP messaging. B. Difference between SQL Exception class and SQL Warning class. Q5. A. How to create com object in Java? B. Write short notes on “The properties class” Q6. A. When object is created and destroyed? B. Explain the JDB in depth & command line. C. Write short notes on Web Sites.
What is a treeset in java?
Difference between Linked list and Queue?
What is the purpose of the enableevents() method?
What does s mean in regex?
Explain about serializable interface in java?
How do you write a good declaration?
Difference between final and effectively final ?
What do you mean by constructor?
What does java final mean?
Describe how to implement singleton design pattern in struts.