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

Difference between hashmap and hashtable?

1168


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?

1183


Can constructors be synchronized in java?

1133


What are the oops concept?

1090


Are we allowed to change the transaction isolation property in middle of a transaction?

1032


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

1245


What is the immediate superclass of the applet class?

1092


What is the map interface?

1129


Describe activation process?

2670


Explain phantom read?

2238


Is there a guarantee of uniqueness for entity beans?

1016


What is the relationship between an event-listener interface and an event-adapter class?

1136


What is table mutation and how do you avoid it?

2479


What is the difference between the session.update() method and the session.lock() method?

1029


What are the design considerations while making a choice between using interface and abstract class?

1103