Over a million developers have joined DZone.
Platinum 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 ZeroTurnaround. Check out this 8-step guide to see how you can increase your productivity by skipping slow application redeploys and by implementing application profiling, as you code!


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


The Java Zone is brought to you in partnership with ZeroTurnaround. Check out this 8-step guide to see how you can increase your productivity by skipping slow application redeploys and by implementing application profiling, as you code!

Topics:
java

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

{{ parent.tldr }}

{{ parent.urlSource.name }}