Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is ioc concept & explain it?

1086


What are the call back methods in entity bean?

1072


What are the different approaches to represent an inheritance hierarchy?

1074


difference between  ejb,struts,hibernate,spring and jsp

2873


What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

1062


Which textcomponent method is used to set a textcomponent to the read-only state?

1134


What is the relationship between the canvas class and the graphics class?

1044


If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?

2209


Why won’t the jvm terminate when I close all the application windows?

1247


Explain how will the struts know which action class to call when you submit a form?

961


What is abstract schema?

1028


How would you create a button with rounded edges?

1153


Where we can write Rmi registry in the code, without having to write it at the command prompt?

2771


What if the static modifier is removed from the signature of the main method?

1240


Describe, in general, how java's garbage collector works?

1039