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


Please Help Members By Posting Answers For Below Questions

How are the elements of a cardlayout organized?

678


whats is mean by connectionpooling

1648


Is there a guarantee of uniqueness for entity beans?

647


What is the relation between the infobus and rmi?

647


Can I import same package/class twice? Will the jvm load the package twice at runtime?

742






What is jboss?

663


Is a class a subclass of itself?

680


Are there books about seam?

721


Difference between DurableSubscription and non- DurableSubscription?

1803


Which characters may be used as the second character of an identifier, but not as the first character of an identifier?

647


What event results from the clicking of a button?

789


What is in-memory replication?

652


How to determine SGA site?

2016


Explain about RMI Architecture?

694


When a thread blocks on i/o?

659