Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 to implement RMI in Java?

2879


wahts is mean by dynavalidatorform in struts/

2080


What state does a thread enter when it terminates its processing?

1066


What is mdb and what is the special feature of that?

1057


What is the form of storage space in java?

2251


What you mean by COM and DCOM?

1065


what is a non-repeatable read?

2433


what are the advantages of JTA over JTS?

2213


What is clustering? What are the different algorithms used for clustering?

1083


If your ui seems to freeze periodically, what might be a likely reason?

1044


What is a sessionfactory? Is it a thread-safe object?

1221


What restrictions are placed on the location of a package statement within a source code file?

1115


What is the difference between ear, jar and war file?

1142


Why does the option tag render selected=selected instead of just selected?

1180


Explain the different types of memory used by jvm?

1146