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 the static import?
What is hashmap in java?
Is arraylist ordered?
Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?
What is io stream in java?
How do you replace all in word?
What is local variable and instance variable?
How java uses the string and stringbuffer classes?
What does the “static” keyword mean? Can you override private or static method in java?
Why java is said to be pass-by-value ?
What is the name of the java compiler?
How does hashset work in java?
what is synchronization and why is it important? : Java thread
What lambda means?
Is char a method in java?