To convert collection-based data into array we can use toArray() method provided by the implementation of Collection interface such as java.util.ArrayList.
|
Our sample code result is shown below:
Java
Sample
Code
|
To convert collection-based data into array we can use toArray() method provided by the implementation of Collection interface such as java.util.ArrayList.
|
Our sample code result is shown below:
Java
Sample
Code
No comments:
Post a Comment