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
Can an arraylist be empty?
How does singleton class work?
What are the legal parameters?
Can we use a default constructor of a class even if an explicit constructor is defined?
How do you compare characters in java?
What is the purpose of default constructor?
Who found java?
What is the name of the java compiler?
What are the different types of collections in java?
Is main a keyword in java?
What is a short in java?
Name component subclasses that support painting in java programming?
State one difference between a template class and class template.
What are singleton services?
Can an anonymous class be declared as implementing an interface and extending a class in java programming?