{"id":668,"date":"2019-10-17T20:19:53","date_gmt":"2019-10-17T20:19:53","guid":{"rendered":"https:\/\/jan.schnasse.org\/blog\/?p=668"},"modified":"2026-09-28T11:39:01","modified_gmt":"2026-09-28T09:39:01","slug":"local-methods-coming-to-java","status":"publish","type":"post","link":"https:\/\/jan.schnasse.org\/blog\/2019\/10\/17\/local-methods-coming-to-java\/","title":{"rendered":"Local Methods coming to Java?"},"content":{"rendered":"<p><a href=\"https:\/\/www.reddit.com\/r\/java\/comments\/di7plt\/local_methods_coming_to_java\/\">https:\/\/www.reddit.com\/r\/java\/comments\/di7plt\/local_methods_coming_to_java\/<\/a><br \/>\n<code><br \/>\npublic static int binarySearch(int[] a, int key) {<br \/>\n    return binarySearch0(a, 0, a.length, key);<br \/>\n    int binarySearch0(int[] a, int start, int stop, int key) {<br \/>\n      ....do the actual search<br \/>\n      calls binarySearch0(.....) recursively<br \/>\n    }<br \/>\n}<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/www.reddit.com\/r\/java\/comments\/di7plt\/local_methods_coming_to_java\/ public static int binarySearch(int[] a, int key) { return binarySearch0(a, 0, a.length, key); int binarySearch0(int[] a, int start, int stop, int key) { &#8230;.do the actual search calls binarySearch0(&#8230;..) recursively } }<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-668","post","type-post","status-publish","format-standard","hentry","category-java"],"_links":{"self":[{"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/posts\/668","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/comments?post=668"}],"version-history":[{"count":1,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/posts\/668\/revisions"}],"predecessor-version":[{"id":4285,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/posts\/668\/revisions\/4285"}],"wp:attachment":[{"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/media?parent=668"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/categories?post=668"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/tags?post=668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}