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 ioc concept?
What value does read() return when it has reached the end of a file?
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
why static class in java
What is the difference between ear, jar and war file?
A user of a web application sees a jsessionid argument in the URL whenever a resource is accessed. What does this mean? a. The form must have the field jsessionid b. URL rewriting is used as the session method c. Cookies are used for managing sessions
cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..
Why are component architectures useful?
how do you Handle Front End Application data against DB with example?
What is a session? Can you share a session object between different theads?
When a thread blocks on i/o?
If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?
What is the relationship between the canvas class and the graphics class?
how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.
What is ioc concept?