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 glasgow?

582


What is the difference between long.class and long.type?

560


which type of objects reference will be given to client?

2024


What is a modular application? What does module-relative mean?

538


Where can I ask questions and make suggestions about seam?

588






Are enterprise beans allowed to use thread.sleep()?

647


What is bean? Where can it be used?

575


What is synchronization and why is it important?

541


What is the purpose of the finally clause of a try-catch-finally statement?

555


What is aop(assepct oriented programing)?

578


Have you used threads in Servelet?

1928


What are the oops concept?

575


Why a client should be multithreading? Explain.

591


Difference between DurableSubscription and non- DurableSubscription?

1712


What is a modular application?

587