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 will you convert an ArrayList to Arrays?

Answer Posted / tapan kumar kundu

Using toArray() method for example

ArrayList arr_obj=new ArrayList()
arr_obj.add("viki");
arr_obj.add("siva");

Object[] obj=arr_obj.toArray();

for further Detail go to my website :
http://www.beexpert.co.in/

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can an arraylist be empty?

1053


How does singleton class work?

992


What are the legal parameters?

1010


Can we use a default constructor of a class even if an explicit constructor is defined?

1106


How do you compare characters in java?

989


What is the purpose of default constructor?

1001


Who found java?

981


What is the name of the java compiler?

1055


What are the different types of collections in java?

962


Is main a keyword in java?

978


What is a short in java?

1048


Name component subclasses that support painting in java programming?

1071


State one difference between a template class and class template.

1068


What are singleton services?

913


Can an anonymous class be declared as implementing an interface and extending a class in java programming?

1284