Java ArrayList to Array toStringArray(ArrayList src)

Here you can find the source of toStringArray(ArrayList src)

Description

to String Array

License

Open Source License

Declaration

public static String[] toStringArray(ArrayList<String> src) 

Method Source Code

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

import java.util.ArrayList;

public class Main {
    public static String[] toStringArray(ArrayList<String> src) {
        String[] ret = new String[src.size()];
        return src.toArray(ret);
    }/*w  w  w  .j a  v a2s.c o  m*/
}

Related

  1. toIntArray(ArrayList array)
  2. toIntArray(ArrayList array)
  3. toIntArray(ArrayList input)
  4. toStringArr(ArrayList al)
  5. toStringArray(ArrayList src)
  6. toStringArrayList(final Object... array)