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

@SuppressWarnings("unchecked")
    public static String[] listToArray(List list) 

Method Source Code

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

import java.util.*;

public class Main {
    @SuppressWarnings("unchecked")
    public static String[] listToArray(List list) {
        final int size = list.size();
        String[] str = (String[]) list.toArray(new String[size]);
        return str;
    }//from w w  w.  j  a va2 s .  c  o m
}

Related

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