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 metaspace?
Explain what is synchronization?
What is the infobus?
Which class is the immediate superclass of the menucomponent class?
How substring() method of string class create memory leaks?
How to deploy Jar, War files in J2EE?
What is the argument type of a programs main() method?
Can constructors be synchronized in java?
Explain about RMI Architecture?
What are the different types of exception?
In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?
Why does the tag url-encode javascript and mailto links?
A user of a web application sees a jsessionid argument in the URL whenever a resource is accessed. What does this mean? a. The form must have the field jsessionid b. URL rewriting is used as the session method c. Cookies are used for managing sessions
Do we need to override service() method
In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?