<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tomotomo1129</author_name>
  <author_url>https://blog.hatena.ne.jp/tomotomo1129/</author_url>
  <blog_title>Web開発における知見共有系ページ</blog_title>
  <blog_url>https://job-info.hateblo.jp/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>Javaで先頭に特定の文字がある場合に先頭にスペースを入れる方法 例 コードの説明 Javaで先頭に特定の文字がある場合に先頭にスペースを入れる方法 Javaで先頭に特定の文字がある場合にその前にスペースを追加する方法を説明します。 具体的に使用する場面は滅多にないかもしれませんが、投稿系の機能を開発する場合に使用するかもしれません。 以下の例では、文字列の先頭に特定の文字が存在する場合、その前にスペースを追加する方法を示します。 例 例えば、文字列の先頭に「A」という文字がある場合、その前にスペースを追加したいとします。 この場合、StringクラスのstartsWithメソッドを使用して、…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjob-info.hateblo.jp%2Fentry%2F2024%2F09%2F02%2F222449&quot; title=&quot;Javaで先頭に特定の文字がある場合に先頭にスペースを入れる方法 - Web開発における知見共有系ページ&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>2024-09-02 22:24:50</published>
  <title>Javaで先頭に特定の文字がある場合に先頭にスペースを入れる方法</title>
  <type>rich</type>
  <url>https://job-info.hateblo.jp/entry/2024/09/02/222449</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
