<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kunst1080</author_name>
  <author_url>https://blog.hatena.ne.jp/kunst1080/</author_url>
  <blog_title>くんすとの備忘録</blog_title>
  <blog_url>https://kunst1080.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>覚書き。 String s = &quot;12345678abcdefgh&quot;; String hyphenated = new StringBuilder(s) .insert(12, '-') .insert(8, '-') .insert(4, '-') .toString(); System.out.println(s + &quot; -&gt; &quot; + hyphenated); 実行結果 12345678abcdefgh -&gt; 1234-5678-abcd-efgh特別見やすいかというと、微妙な感じ。 もうちょいスマートなやり方があるような気もする。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkunst1080.hatenablog.com%2Fentry%2F2013%2F05%2F25%2F224524&quot; title=&quot;【Java】substringを使わずに文字列をハイフン編集する - くんすとの備忘録&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>2013-05-25 22:45:24</published>
  <title>【Java】substringを使わずに文字列をハイフン編集する</title>
  <type>rich</type>
  <url>https://kunst1080.hatenablog.com/entry/2013/05/25/224524</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
