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

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

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.*;

public class Main {
    public static String[] toStringArray(Collection<String> collection) {
        if (collection == null)
            throw new RuntimeException(
                    "Can't do toStringArray. Collection is Null");
        return collection.toArray(new String[collection.size()]);
    }/*from w  w w .  j  ava2  s .c  o  m*/
}

Related

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