{"id":1401,"date":"2016-08-04T06:12:53","date_gmt":"2016-08-04T06:12:53","guid":{"rendered":"http:\/\/codethataint.com\/blog\/?p=1401"},"modified":"2016-09-10T14:51:00","modified_gmt":"2016-09-10T14:51:00","slug":"how-to-remove-element-from-array","status":"publish","type":"post","link":"https:\/\/codethataint.com\/blog\/how-to-remove-element-from-array\/","title":{"rendered":"How to Remove element from array"},"content":{"rendered":"<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\npublic static String&#x5B;] removeElements(String&#x5B;] input, String deleteMe) \r\n{\r\n    List result = new LinkedList();\r\n\r\n    for(String item : input)\r\n        if(!deleteMe.equals(item))\r\n            result.add(item);\r\n\r\n    return result.toArray(input);\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>public static String&#x5B;] removeElements(String&#x5B;] input, String deleteMe) { List result = new LinkedList(); for(String item : input) if(!deleteMe.equals(item)) result.add(item); return result.toArray(input); }<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51],"tags":[],"class_list":["post-1401","post","type-post","status-publish","format-standard","hentry","category-arrays"],"_links":{"self":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/1401","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/comments?post=1401"}],"version-history":[{"count":2,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/1401\/revisions"}],"predecessor-version":[{"id":1595,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/1401\/revisions\/1595"}],"wp:attachment":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/media?parent=1401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/categories?post=1401"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/tags?post=1401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}