Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

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

Are you joining the containers revolution? Start leveraging container management using Platform9's ultimate guide to Kubernetes deployment.


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


Using Containers? Read our Kubernetes Comparison eBook to learn the positives and negatives of Kubernetes, Mesos, Docker Swarm and EC2 Container Services.

Topics:
java

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

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

{{ parent.tldr }}

{{ parent.urlSource.name }}