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 are the different class loaders used by jvm?

1057


Which javutil classes and interfaces support event handling?

998


Which container method is used to cause a container to be laid out and redisplayed?

1096


What are various types of class loaders used by jvm?

939


How a component can be placed on Windows?

2793


What is message driven beam?

1013


Why use a datasource when you can directly specify a connection details? (in a J2EE application)

4184


Do I need to import javlang package any time? Why ?

1049


Is the infobus client side only?

1068


What is a class loader? What are the different class loaders used by jvm?

1066


What is JTS?

2314


Can we sent objects using Sockets?

1097


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?

1127


Difference between hashmap and hashtable?

1100


Will the general public have access to the infobus apis?

1009