Java ArrayList to Array convertStringArrayListToArray(ArrayList al)

Here you can find the source of convertStringArrayListToArray(ArrayList al)

Description

convert String Array List To Array

License

Open Source License

Declaration

public static String[] convertStringArrayListToArray(ArrayList<String> al) 

Method Source Code

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

import java.util.*;

public class Main {
    public static String[] convertStringArrayListToArray(ArrayList<String> al) {
        String[] temp = al.toArray(new String[0]);
        String[] list = new String[temp.length];
        System.arraycopy(temp, 0, list, 0, temp.length);
        return list;
    }//from   w ww.j av  a  2  s .co  m
}

Related

  1. byteArrayListToByteArray(ArrayList indata)
  2. byteArrayListToCharToString(ArrayList byteArrayList)
  3. convertArrayListToHexString(ArrayList al)
  4. convertArrayListToIntArray(ArrayList al)
  5. convertIntArrayList2array(ArrayList alInput)
  6. doubleArrayList2Array(ArrayList a)
  7. listToArray(ArrayList tempList)
  8. listToIntArray(ArrayList list)
  9. toArray(ArrayList arrayList)