{"published":"2013-05-25 22:45:24","image_url":null,"type":"rich","author_url":"https://blog.hatena.ne.jp/kunst1080/","provider_url":"https://hatena.blog","categories":["Java"],"blog_title":"\u304f\u3093\u3059\u3068\u306e\u5099\u5fd8\u9332","title":"\u3010Java\u3011substring\u3092\u4f7f\u308f\u305a\u306b\u6587\u5b57\u5217\u3092\u30cf\u30a4\u30d5\u30f3\u7de8\u96c6\u3059\u308b","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkunst1080.hatenablog.com%2Fentry%2F2013%2F05%2F25%2F224524\" title=\"\u3010Java\u3011substring\u3092\u4f7f\u308f\u305a\u306b\u6587\u5b57\u5217\u3092\u30cf\u30a4\u30d5\u30f3\u7de8\u96c6\u3059\u308b - \u304f\u3093\u3059\u3068\u306e\u5099\u5fd8\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://kunst1080.hatenablog.com/entry/2013/05/25/224524","width":"100%","description":"\u899a\u66f8\u304d\u3002 String s = \"12345678abcdefgh\"; String hyphenated = new StringBuilder(s) .insert(12, '-') .insert(8, '-') .insert(4, '-') .toString(); System.out.println(s + \" -> \" + hyphenated); \u5b9f\u884c\u7d50\u679c 12345678abcdefgh -> 1234-5678-abcd-efgh\u7279\u5225\u898b\u3084\u3059\u3044\u304b\u3068\u3044\u3046\u3068\u3001\u5fae\u5999\u306a\u611f\u3058\u3002 \u3082\u3046\u3061\u3087\u3044\u30b9\u30de\u30fc\u30c8\u306a\u3084\u308a\u65b9\u304c\u3042\u308b\u3088\u3046\u306a\u6c17\u3082\u3059\u308b\u3002","blog_url":"https://kunst1080.hatenablog.com/","height":"190","provider_name":"Hatena Blog","author_name":"kunst1080"}