Over a million developers have joined DZone.
Silver Partner

Convert Array To Java.util.List

Use this code snippet to convert an array to java.util.list.

· Java Zone

The Java Zone is brought to you in partnership with DCHQ.  Discover how to deploy & monitor multi-tier Java applications on any cloud in seconds.


Object[] array = new Object[]{"12","23","34"};
java.util.List list = Arrays.asList(array);


The Java Zone is brought to you in partnership with DCHQ. Learn more about best practices for automating the deployment and management of your Java application on any cloud.

Topics:
java

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}