how to search the pertical objects in a Collections
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
What value does readline() return when it has reached the end of a file?
What is the difference between a static and a non-static inner class?
What invokes a thread?s run() method?
What must a class do to implement an interface?
Why doesn’t the focus feature on the tag work in every circumstance?
Connection Pooling with different type of databases?
Which Taglibraury you used in your project? plz send me ans....which we r using generally
What is the relationship between an event-listener interface and an event-adapter class?
what is diff between Access modifier and specifier?
Why threads will block on I/O?
What method is invoked to cause an object to begin executing as a separate thread?
Explain about thread synchronization inside a monitor?