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
Should synchronization primitives be used on bean methods?
What are the services in RMI ?
Is infobus easy to use?
AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?
What event results from the clicking of a button?
Why doesn’t the focus feature on the tag work in every circumstance?
Which characters may be used as the second character of an identifier, but not as the first character of an identifier?
Difference between loadclass and class.forname?
What are externizable interface?
Explain the different types of memory used by jvm?
What are the different approaches to represent an inheritance hierarchy?
How to determine SGA site?
What modifiers may be used with an inner class that is a member of an outer class?
whats is statement and procedure
What is synchronization and why is it important?