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
What is a parameter in a function?
What are green threads in java?
can rmi and corba based applications interact ?
Which number is denoted by leading zero in java?
Difference between throw and throws?
Explain illegalmonitorstateexception and when it will be thrown?
why are there separate wait and sleep methods? : Java thread
What will be the initial value of an object reference which is defined as an instance variable?
How will you add panel to a frame?
Can you give names of Container classes?
Can main() method in java can return any data?
when you will synchronize a piece of your code? : Java thread
Why hashset is used in java?
Implement a stack with push (), pop() and min() in O(1) time.
How can we create a thread in java?