{"id":98,"date":"2010-11-16T13:19:56","date_gmt":"2010-11-16T20:19:56","guid":{"rendered":"http:\/\/shivdev.com\/blog\/2010\/11\/16\/convert-list-to-string-in-java\/"},"modified":"2011-05-06T07:17:04","modified_gmt":"2011-05-06T07:17:04","slug":"convert-list-to-string-in-java","status":"publish","type":"post","link":"http:\/\/shivdev.com\/blog\/2010\/11\/16\/convert-list-to-string-in-java\/","title":{"rendered":"Convert list of string List<String> to string array String[] in Java"},"content":{"rendered":"<p>This is such a common task, yet needs a bit of thinking.<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\nList &lt;string&gt; strList = getListOfString();\r\nString[] strArr = strList.toArray(new String[strList.size()]);\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This is such a common task, yet needs a bit of thinking.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts\/98"}],"collection":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/comments?post=98"}],"version-history":[{"count":3,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts\/98\/revisions"}],"predecessor-version":[{"id":182,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts\/98\/revisions\/182"}],"wp:attachment":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/media?parent=98"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/categories?post=98"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/tags?post=98"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}