Over a million developers have joined DZone.

Convert Array To Java.util.List

DZone's Guide to

Convert Array To Java.util.List

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

· Java Zone ·
Free Resource

Download Microservices for Java Developers: A hands-on introduction to frameworks and containers. Brought to you in partnership with Red Hat.

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

Download Building Reactive Microservices in Java: Asynchronous and Event-Based Application Design. Brought to you in partnership with Red Hat


Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}