VideosMy ProjectsProgramming BlogGallery
  1. Home
  2. Blog
  3. Convert list to array in Java
Programming Blog

Atom/RSS Feed

java

Convert list to array in Java

java

This is how you convert a list to an array in Java

Convert list to array

List<Integer> list = Collections.emptyList();
Integer[] array = new Integer[list.size()];
list.toArray(array);
Join my mailing list