how to search the pertical objects in a Collections
Answer Posted / manas
corrected of #1 ans:
ArrayList a1=new ArrayList();
a1.add("shiva");
Object e[]=a1.toArray();
for(int i=0;i<a1.size();i++)
{
if(e[i].equals("inputstring");
}
}
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Why a client should be multithreading? Explain.
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?
what are getters and setters in Java with examples?
Explain ioc concept?
Explain phantom read?
Difference between swing and awt?
What is the difference between java class and bean?
What is re-entrant. Is session beans reentrant. Is entity beans reentrant?
Why are component architectures useful?
How a component can be placed on Windows?
Can I map more than one table in a cmp?
Are we allowed to change the transaction isolation property in middle of a transaction?
What are JTA/JTS and how they used by client?
Is the session factory thread safe?
Explain about local interfaces.