how to search the pertical objects in a Collections
Answer Posted / siva thimmannagari
ArrayList a1=new ArrayList();
a1.add("shiva");
Object e[]=a1.toArray();
for(int i=0;i<a1.size();i++0
{
if(e[0].equals("inputstring");
}
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is a class loader?
What is the difference between ear, jar and war file?
What is the difference between a static and a non-static inner class?
what is an isolation level?
What is the map interface?
what is the use of State Factories?
What are JTA/JTS and how they used by client?
What are the different class loaders used by jvm?
which type of objects reference will be given to client?
Can you give me a simple example of using the requiredif validator rule?
Explain how will the struts know which action class to call when you submit a form?
Do you think that java should have had pointers?
Define the remote object implementation?
What is clustering? What are the different algorithms used for clustering?
Java is fully object oriented languages or not?