In this section, you will learn to convert Collection data to an Array.
This program helps you in converting Collection data to an Array. Here we have taken an collection of weekdays which gets converted to Array using days.toArray method.
Output of the program:
If you enjoyed this post then why not add us on Google+? Add us to your Circles
Liked it! Share this Tutorial