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 use a datasource when you can directly specify a connection details?
Difference between DurableSubscription and non- DurableSubscription?
What is ioc concept & explain it?
Difference between loadclass and class.forname?
Can I use javascript to submit a form?
What are callback interfaces?
What is the RMI and Socket?
Can I import same package/class twice? Will the jvm load the package twice at runtime?
Do we need to override service() method
What’s jboss cache in short?
Can I map more than one table in a cmp?
What is an abstract method?
What are the difference between RMI and CORBA?
What are the services in RMI ?
Name three subclasses of the component class?