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 is Lock Based Protocol and what is its use?
Hi I have joined java course. I also want additional help from any tutorials website. Please suggest me tutorials which provides easy to understand online applet tutorials?
What are Benefits of Connection Pooling?
Have you used threads in Servelet?
What are the difference between RMI and CORBA?
What are the states associated in the thread?
AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?
Difference between loadclass and class.forname?
iam writing the contents to a excel through I/O i am putting first statement as WRITE and then READ(from excel) immediately..later user complains that he is not getting the date by using READ ..wat could be the situation
What is multi-tasking? Types?
What is the lifecycle of an applet?
What is the argument type of a programs main() method?