<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>PlugOut</author_name>
  <author_url>https://blog.hatena.ne.jp/PlugOut/</author_url>
  <blog_title>Unknown Region</blog_title>
  <blog_url>https://plugout.hateblo.jp/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>JavaでMapを作成して最初に何か値を代入したい場合、通常は以下のようにすると思います。 Java8でのHashMapの生成と代入例: Map&lt;String, String&gt; map = new HashMap&lt;&gt;(); map.put(&quot;hoge&quot;, &quot;fuga&quot;); map.put(&quot;foo&quot;, &quot;bar&quot;); ただ、他の言語を触っている人だと、Mapの作成と同時に値を設定して置きたいと感じるのではないでしょうか。 例えば下のコードのような形です。 PerlでのHash（連想配列）の生成と初期代入例: my %map = ('hoge' =&gt; 'fuga', 'foo' =&gt; 'bar'…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fplugout.hateblo.jp%2Fentry%2F2018%2F09%2F30%2F144912&quot; title=&quot;【Java】Mapへの初期代入について - Unknown Region&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/P/PlugOut/20180930/20180930144943.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-09-30 14:49:12</published>
  <title>【Java】Mapへの初期代入について</title>
  <type>rich</type>
  <url>https://plugout.hateblo.jp/entry/2018/09/30/144912</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
