Java tutorial
//package com.java2s; /* 2010 Stephan Reichholf <stephan at reichholf dot net> * * Licensed under the Create-Commons Attribution-Noncommercial-Share Alike 3.0 Unported * http://creativecommons.org/licenses/by-nc-sa/3.0/ */ import java.util.ArrayList; public class Main { public static CharSequence[] toCharSequenceArray(ArrayList<String> strings) { CharSequence[] list = new CharSequence[strings.size()]; for (int i = 0; i < strings.size(); ++i) { list[i] = strings.get(i); } return list; } }