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 the difference between the session.get() method and the session.load() method?
Difference between new operator and class.forname().newinstance()?
Why is string immutable in java?
How to deploy Jar, War files in J2EE?
Why use a datasource when you can directly specify a connection details?
Whats new with the stop(), suspend() and resume() methods in jdk 1.2?
Why do I get a duplicate name error when loading a jar file?
When a thread blocks on i/o, what state does it enter?
what is the use of State Factories?
Do I have to use jsps with my application?
In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?
What is permgen or permanent generation?
How task's priority is used in scheduling?
How are the elements of a cardlayout organized?
What classes of exceptions may be caught by a catch clause?