<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gsf_zero1</author_name>
  <author_url>https://blog.hatena.ne.jp/gsf_zero1/</author_url>
  <blog_title>いろいろ備忘録日記</blog_title>
  <blog_url>https://devlights.hatenablog.com/</blog_url>
  <categories>
    <anon>java</anon>
  </categories>
  <description>概要 サンプル 参考情報 概要 いつも使いたいときに忘れるので、ついでにここにメモ。 公式 Javadoc のFormatterクラスの記載を読めば分かるみたいなのですが、ややこしいんですよね。。。 とりあえず、%,d でカンマ付けになる。 サンプル public final class App { public static void main(String[] args) { final var num = 99999; final var str = String.format(&quot;%,d&quot;, num); System.out.println(str); } } 実行すると以下のようになり…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdevlights.hatenablog.com%2Fentry%2F2022%2F11%2F29%2F083000&quot; title=&quot;Javaで数字をカンマ付け (%,d) - いろいろ備忘録日記&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/g/gsf_zero1/20221126/20221126194242.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-11-29 08:30:00</published>
  <title>Javaで数字をカンマ付け (%,d)</title>
  <type>rich</type>
  <url>https://devlights.hatenablog.com/entry/2022/11/29/083000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
