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 are the different algorithms used for clustering?
Write a program to show synchronization?
What are the diff types of exception?
What are the steps to write p-to-p model application?
Define the remote object implementation?
how do you Handle Front End Application data against DB with example?
What is the difference between session and entity beans?
what are the activation groupworks?
Difference between new operator and class.forname().newinstance()?
What is the difference between static and non-static with examples?
Can I have an action without a form?
How would you detect a keypress in a jcombobox?
Is there a guarantee of uniqueness for entity beans?
Why won’t the jvm terminate when I close all the application windows?
What do you need to set-up a cluster with jboss?