Java List to Array convertStringListToArray(List list)

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

Description

Konwertuje liste typu String do tablicy.

License

Open Source License

Parameter

Parameter Description
list Lista do skonwertowania

Return

Powstala tablica typu String

Declaration

public static String[] convertStringListToArray(List list) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.List;

public class Main {
    /**//www.j  ava2 s.com
     * Konwertuje liste typu String do tablicy.
     * 
     * @param list
     *          Lista do skonwertowania
     * @return Powstala tablica typu String
     */
    public static String[] convertStringListToArray(List list) {
        String[] result = new String[list.size()];
        list.toArray(result);
        return result;
    }
}

Related

  1. asArrayList(E first, E... other)
  2. asArrayList(T... a)
  3. asBooleanArray(List list)
  4. asByteArray(final List l)
  5. asClassArray(List> list)
  6. convertStringListToArray(List list)
  7. convertToArray(final List> list)
  8. convertToArray(List list)
  9. convertToArray(List args)