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
What is ioc concept & explain it?
What are the call back methods in entity bean?
What are the different approaches to represent an inheritance hierarchy?
difference between ejb,struts,hibernate,spring and jsp
What is re-entrant. Is session beans reentrant. Is entity beans reentrant?
Which textcomponent method is used to set a textcomponent to the read-only state?
What is the relationship between the canvas class and the graphics class?
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?
Why won’t the jvm terminate when I close all the application windows?
Explain how will the struts know which action class to call when you submit a form?
What is abstract schema?
How would you create a button with rounded edges?
Where we can write Rmi registry in the code, without having to write it at the command prompt?
What if the static modifier is removed from the signature of the main method?
Describe, in general, how java's garbage collector works?