<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bleis-tift</author_name>
  <author_url>https://blog.hatena.ne.jp/bleis-tift/</author_url>
  <blog_title>ぐるぐる～</blog_title>
  <blog_url>https://bleis-tift.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
    <anon>Program</anon>
  </categories>
  <description>Javaで文字列の連結の方法にはいくつかある。まずはそれらの方法をまとめ、最後に新しい方法を考えてみる。 +演算子 一番直感的なのは、+演算子による連結だろう。しかし、これはコンパイル時定数同士の連結でない限り最も効率が悪いので、使うべきではない。ただし、コンパイル時定数同士の連結では最も効率がよい*1ため、以下のようなコードは問題ない。 public static final String LN = &quot;\n&quot;; public static final int HOGE_NUM = 100; public String func() { return HOGE_NUM + LN; } この場合…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbleis-tift.hatenablog.com%2Fentry%2F20070304%2F1173011762&quot; title=&quot;文字列の連結 - ぐるぐる～&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-03-04 21:36:02</published>
  <title>文字列の連結</title>
  <type>rich</type>
  <url>https://bleis-tift.hatenablog.com/entry/20070304/1173011762</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
