Java Collection to Array toStringArray(Collection collection)

Here you can find the source of toStringArray(Collection collection)

Description

to String Array

License

Open Source License

Declaration

static public String[] toStringArray(Collection<String> collection) 

Method Source Code


//package com.java2s;

import java.util.Collection;

public class Main {
    static public String[] toStringArray(Collection<String> collection) {
        return collection != null ? collection.toArray(new String[collection.size()]) : null;
    }/*from  ww w.j  a va 2s  . c  om*/
}

Related

  1. toStringArray(Collection collection)
  2. toStringArray(Collection collection)
  3. toStringArray(Collection collection)
  4. toStringArray(Collection collection)
  5. toStringArray(Collection collection)
  6. toStringArray(Collection items)
  7. toStringArray(Collection list)
  8. toStringArray(Collection strings)
  9. toStringArray(final Collection fields)