Here you can find the source of toStringArray(Collection
Parameter | Description |
---|---|
collection | a parameter |
public static String[] toStringArray(Collection<String> collection)
//package com.java2s; //License from project: Apache License import java.util.Collection; public class Main { public static String[] toStringArray(Collection<String> collection) { if (collection == null) { return null; }// www.ja v a 2 s . c o m return collection.toArray(new String[collection.size()]); } }