Java List to Array toStringArray(List array)

Here you can find the source of toStringArray(List array)

Description

to String Array

License

Apache License

Declaration

public static String[] toStringArray(List<String> array) 

Method Source Code

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

import java.util.List;

public class Main {

    public static String[] toStringArray(List<String> array) {
        return array.toArray(new String[] {});
    }//from  w  ww.  j  av a2  s . c  om

    public static String[] toStringArray(String... strings) {
        return strings;
    }
}

Related

  1. toStringArray(final List list)
  2. toStringArray(List l)
  3. toStringArray(List list)
  4. toStringArray(List list)
  5. toStringArray(List objList)
  6. toStringArray(List items)
  7. toStringArray(List list)
  8. toStringArray(List list)
  9. toStringArray(List list)

  10. HOME | Copyright © www.java2s.com 2016