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 / vikneswarank

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 ?    11 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the static import?

1104


What is hashmap in java?

1057


Is arraylist ordered?

1072


Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?

1019


What is io stream in java?

1055


How do you replace all in word?

1066


What is local variable and instance variable?

1055


How java uses the string and stringbuffer classes?

1072


What does the “static” keyword mean? Can you override private or static method in java?

1100


Why java is said to be pass-by-value ?

1043


What is the name of the java compiler?

1055


How does hashset work in java?

1120


what is synchronization and why is it important? : Java thread

1093


What lambda means?

1003


Is char a method in java?

1064