Array to Collection JAVA Example

In JAVA projects, It is very common requirement to convert an Array into Collection. This example demonstrate how can we convert an Array to ArraList (Collection).

To get Array as List, JAVA provide asList(T a)  method present in java.util.Arrays class.