Here you can find the source of collectionToStringArray(Collection holder)
Parameter | Description |
---|---|
holder | - non-null collection holding strings |
public static String[] collectionToStringArray(Collection holder)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { /**{ method/*from ww w . j av a 2 s. com*/ @name collectionToStringArray @function return an array of strings from a collection @param holder - non-null collection holding strings @return non-null array of strings }*/ public static String[] collectionToStringArray(Collection holder) { String[] ret = new String[holder.size()]; holder.toArray(ret); return (ret); } }