GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Tech FAQs  >  Programming  >  Java

 Print  |  
Question:  ArrayList to Array

Answer: How will you convert an ArrayList to an Array?


May 05, 2009 05:48:10 #1
 inthiyaj   Member Since: May 2009    Total Comments: 4 

RE: ArrayList to Array
 
In ArrayList we have toArray() method which returns Object[]. by using this we can convert arrayList to Array. In the same way In Array we have asList(T... a) to convert Array to List.
     

 

Back To Question