how to search the pertical objects in a Collections
Answer Posted / raj
We can search by contains(Object) method of collection
class. like
Arraylist list = new ArrayList();
list.add("a");
list.add("b");
if(list.contains("a")
{
--
--
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How to implement RMI in Java?
wahts is mean by dynavalidatorform in struts/
What state does a thread enter when it terminates its processing?
What is mdb and what is the special feature of that?
What is the form of storage space in java?
What you mean by COM and DCOM?
what is a non-repeatable read?
what are the advantages of JTA over JTS?
What is clustering? What are the different algorithms used for clustering?
If your ui seems to freeze periodically, what might be a likely reason?
What is a sessionfactory? Is it a thread-safe object?
What restrictions are placed on the location of a package statement within a source code file?
What is the difference between ear, jar and war file?
Why does the option tag render selected=selected instead of just selected?
Explain the different types of memory used by jvm?