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
Difference between hashmap and hashtable?
In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?
Can constructors be synchronized in java?
What are the oops concept?
Are we allowed to change the transaction isolation property in middle of a transaction?
What if the static modifier is removed from the signature of the main method?
What is the immediate superclass of the applet class?
What is the map interface?
Describe activation process?
Explain phantom read?
Is there a guarantee of uniqueness for entity beans?
What is the relationship between an event-listener interface and an event-adapter class?
What is table mutation and how do you avoid it?
What is the difference between the session.update() method and the session.lock() method?
What are the design considerations while making a choice between using interface and abstract class?