Java String from List stringListToArray(final List list)

Here you can find the source of stringListToArray(final List list)

Description

string List To Array

License

Open Source License

Declaration

final public static String[] stringListToArray(final List<String> list) 

Method Source Code

//package com.java2s;
// License as published by the Free Software Foundation; either

import java.util.List;

public class Main {
    final public static String[] stringListToArray(final List<String> list) {
        if (list != null) {
            final String[] str = new String[list.size()];
            int i = 0;
            for (final String l : list) {
                str[i++] = l;/*from w  w w  .  j a v  a2s .  c  o  m*/
            }
            return str;
        }
        return null;
    }
}

Related

  1. stringList(String prefix, String suffix, String separator, Object... objects)
  2. stringList2String(final String suffix, final List list)
  3. stringList2String(List list, String separator)
  4. stringListEquals(List left, List right)
  5. stringListString(List list)
  6. stringListToArray(List list)
  7. stringListToArray(List params)
  8. stringListToString(final List l, final String separator)
  9. stringListToString(List list)