These two lines will convert a list<String> to array of Strings -
List<String> myList = new ArrayList<String>();
String listToArray[] = myList.toArray(new String[myList .size()]);
Feel free to share!!
No comments :
Post a Comment