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

What is a policy?

2352


Do we need to override service() method

1790


What do you need to set-up a cluster with jboss?

1126


Can I use javascript to submit a form?

1202


Why are component architectures useful?

1122


What is the relationship between the canvas class and the graphics class?

1079


What are the benefits of detached objects?

1105


Is the session factory thread safe?

1237


Where can I find seam examples and documentation?

1151


What is the map interface?

1175


What class is the top of the awt event hierarchy?

1160


which type of objects reference will be given to client?

2525


What method is invoked to cause an object to begin executing as a separate thread?

1096


Which containers use a border layout as their default layout?

1207


What are the different methods of identifying an object?

1132