{"id":558,"date":"2008-11-10T20:45:20","date_gmt":"2008-11-11T00:45:20","guid":{"rendered":"http:\/\/www.dr-chuck.com\/wordpress\/?p=558"},"modified":"2011-12-17T12:28:08","modified_gmt":"2011-12-17T16:28:08","slug":"iterating-through-properties-in-java-1-5-is-just-not-right","status":"publish","type":"post","link":"https:\/\/www.dr-chuck.com\/csev-blog\/2008\/11\/iterating-through-properties-in-java-1-5-is-just-not-right\/","title":{"rendered":"Iterating through Properties in Java 1.5 is just not right!"},"content":{"rendered":"<p>I love Java 1.5isms like foreach.  It makes me yearn somewhat less for languages like Ruby, Python, and PHP.  It makes it so I do not feel itchy when I code in Java.  Also I am moving towards Properties instead if Map&lt;String,String&gt; because it seems more &#8220;native&#8221; &#8211; but it is just ugly to iterate through a Properties object in Java:<\/p>\n<pre>\nProperties props ...\nfor(Object okey : props.keySet() ) {\nString key = (String) okey;  \/\/ Creepy\n<\/pre>\n<p>\nWhat is up with that?   And the leys() method returns an Enumeration which does not work with the foreach.   What is up with that?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I love Java 1.5isms like foreach. It makes me yearn somewhat less for languages like Ruby, Python, and PHP. It makes it so I do not feel itchy when I code in Java. Also I am moving towards Properties instead if Map&lt;String,String&gt; because it seems more &#8220;native&#8221; &#8211; but it is just ugly to iterate [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-558","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/comments?post=558"}],"version-history":[{"count":1,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/558\/revisions"}],"predecessor-version":[{"id":2665,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/558\/revisions\/2665"}],"wp:attachment":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/media?parent=558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/categories?post=558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/tags?post=558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}