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


Please Help Members By Posting Answers For Below Questions

Why a client should be multithreading? Explain.

593


If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?

1736


what are getters and setters in Java with examples?

1284


Explain ioc concept?

621


Explain phantom read?

1737






Difference between swing and awt?

601


What is the difference between java class and bean?

578


What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

578


Why are component architectures useful?

572


How a component can be placed on Windows?

2264


Can I map more than one table in a cmp?

590


Are we allowed to change the transaction isolation property in middle of a transaction?

563


What are JTA/JTS and how they used by client?

1716


Is the session factory thread safe?

673


Explain about local interfaces.

585