{"id":372,"date":"2019-02-20T08:28:18","date_gmt":"2019-02-20T08:28:18","guid":{"rendered":"https:\/\/jan.schnasse.org\/blog\/?p=372"},"modified":"2026-09-28T11:39:16","modified_gmt":"2026-09-28T09:39:16","slug":"java-properties-part-1","status":"publish","type":"post","link":"https:\/\/jan.schnasse.org\/blog\/2019\/02\/20\/java-properties-part-1\/","title":{"rendered":"Java Properties: Part 1"},"content":{"rendered":"<p><strong>Printing<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"java\">printProperties(System.getProperties());\n\nprivate static void printProperties(Properties properties) {\n  new TreeSet&lt;&gt;(properties.keySet()).forEach((k) -&gt; {\n    System.out.println(k + \" : \" + properties.get(k));\n  });\n}<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Printing printProperties(System.getProperties()); private static void printProperties(Properties properties) { new TreeSet&lt;&gt;(properties.keySet()).forEach((k) -&gt; { System.out.println(k + &#8220; : &#8220; + properties.get(k)); }); } &nbsp;<\/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-372","post","type-post","status-publish","format-standard","hentry","category-java"],"_links":{"self":[{"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/posts\/372","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=372"}],"version-history":[{"count":1,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/posts\/372\/revisions"}],"predecessor-version":[{"id":4386,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/posts\/372\/revisions\/4386"}],"wp:attachment":[{"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/media?parent=372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/categories?post=372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/tags?post=372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}