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


Please Help Members By Posting Answers For Below Questions

What state does a thread enter when it terminates its processing?

600


What is the difference between system.out ,system.err and system.in?

595


How are the elements of a borderlayout organized?

592


what is meant by JRMP?

1809


What is the difference between static and non-static with examples?

1358






What is mdb and what is the special feature of that?

563


What is a modular application?

589


Difference between hashmap and hashtable?

605


which type of objects reference will be given to client?

2027


Brief description about local interfaces?

627


What’s jboss jbpm?

577


Explain phantom read?

1738


What are the different algorithms used for clustering?

548


Is it possible to stop the execution of a method before completion in a sessionbean?

597


What is synchronization and why is it important?

542