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
Where and how can you use a private constructor?
how to create daemon thread in java?
What method is used to specify a container's layout in java programming?
Can you extend main method in java?
What is linked hashmap and its features?
What is proper subset?
Find the value of a specified element of the array arr[i] where 0 <= i <= n-1
What does math floor () do?
How do you sort arraylist in descending order?
How to sort a collection of custom Objects in Java?
What do you mean by static variable?
What is java argument list?
What do bitwise operators do?
What is static keyword in java?
How does linkedhashmap work in java?