Arraylist轉換成字符串數組

public static String[] convertToStringArray(ArrayList<String> list) {
	String[] covertedArray = new String[list.size()];
	covertedArray = (String[]) list.toArray(covertedArray);
	return covertedArray;
}
相關文章
相關標籤/搜索