{"id":13119,"date":"2019-04-30T19:06:14","date_gmt":"2019-04-30T17:06:14","guid":{"rendered":"http:\/\/blog.wenzlaff.de\/?p=13119"},"modified":"2019-07-15T20:30:44","modified_gmt":"2019-07-15T18:30:44","slug":"java-raetsel-des-tages","status":"publish","type":"post","link":"http:\/\/blog.wenzlaff.de\/?p=13119","title":{"rendered":"Java: R\u00e4tsel des Tages"},"content":{"rendered":"<p>Was ist das Ergebnis?<\/p>\n<pre class=\"lang:java decode:true \" >\r\n\/**\r\n * R\u00e4tsel des Tages.\r\n * \r\n * @author Thomas Wenzlaff\r\n *\r\n *\/\r\nfinal public class R\u00e4tselDerWoche {\r\n\r\n\tprivate static int x = 1;\r\n\r\n\tstatic {\r\n\t\tx++;\r\n\t}\r\n\r\n\tpublic static void main(String[] args) {\r\n\t\tSystem.out.println(\"Ergebnis: \" + x);\r\n\t}\r\n\r\n\tstatic {\r\n\t\tx = 3;\r\n\t}\r\n}\r\n<\/pre>\n<p> Ergebnis: <!--more-->3<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Was ist das Ergebnis? \/** * R\u00e4tsel des Tages. * * @author Thomas Wenzlaff * *\/ final public class R\u00e4tselDerWoche { private static int x = 1; static { x++; } public static void main(String[] args) { System.out.println(&#8222;Ergebnis: &#8220; + x); } static { x = 3; } } Ergebnis:<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[5,79,2658],"tags":[2178,1382,1383,3600],"class_list":["post-13119","post","type-post","status-publish","format-standard","hentry","category-java","category-programmierung","category-test-thema","tag-java","tag-raetsel","tag-raetsel-des-monats","tag-raetsel-des-tages"],"_links":{"self":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/13119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13119"}],"version-history":[{"count":0,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/13119\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13119"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}