Lets see how to convert List to Array.
In this program we have taken a List of type String as shown below. For this we have used Mylist.add to add the contents of the list as shown below. Then we have used a method Mylist.toArray to convert the List to Array.
Here is the code of this program:
Output of the program:
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: August 9, 2007 If you enjoyed this post then why not add us on Google+? Add us to your Circles