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:
Liked it! Share this Tutorial