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
What is a policy?
Do we need to override service() method
What do you need to set-up a cluster with jboss?
Can I use javascript to submit a form?
Why are component architectures useful?
What is the relationship between the canvas class and the graphics class?
What are the benefits of detached objects?
Is the session factory thread safe?
Where can I find seam examples and documentation?
What is the map interface?
What class is the top of the awt event hierarchy?
which type of objects reference will be given to client?
What method is invoked to cause an object to begin executing as a separate thread?
Which containers use a border layout as their default layout?
What are the different methods of identifying an object?