Java List to Array listToArray(List list)

Here you can find the source of listToArray(List list)

Description

list To Array

License

Apache License

Declaration

public static Object[] listToArray(List list) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.List;

public class Main {
    public static Object[] listToArray(List list) {
        return list.stream().toArray(Object[]::new);
    }//from w ww . j  a  v a2  s .  c  o m
}

Related

  1. convertToArray(List args)
  2. listToArray(final List list)
  3. listToArray(final List a)
  4. listToArray(List data)
  5. listToArray(List ids)
  6. listToArray(List list)
  7. listToArray(List list)
  8. listToArray(List list)
  9. listToArray(List bytes)