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
Explain the difference between object state and behavior?
Can I run seam outside of jboss as?
What is in-memory replication?
How messaging services are done, before release of JMS?
Are we allowed to change the transaction isolation property in middle of a transaction?
Is the session factory thread safe?
To what value is a variable of the string type automatically initialized?
When a thread blocks on i/o, what state does it enter?
What are the services in RMI ?
In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?
What’s jboss cache in short?
How to implement RMI in Java?
What is aop(assepct oriented programing)?
what is a non-repeatable read?
Difference between loadclass and class.forname?