Convert list of string List to string array String[] in Java
Writing by shivdev on Tuesday, 16 of November , 2010 at 1:19 pm
This is such a common task, yet needs a bit of thinking.
List <string> strList = getListOfString(); String[] strArr = strList.toArray(new String[strList.size()]);
Leave a comment
Category: Java
- Add this post to
- Del.icio.us -
- Digg -
- -
- Tweet -
-
-
No Comments
No comments yet.
Leave a comment
You must be logged in to post a comment.