<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pineatapple</author_name>
  <author_url>https://blog.hatena.ne.jp/pineatapple/</author_url>
  <blog_title>コツコツ学習ブログ</blog_title>
  <blog_url>https://ioioios.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>Atcoderでたまに出てくる辞書順問題。 基本的に、インタフェースComparableを実装した Stringクラスのcompareto()を使用する。 戻り値は結果に応じて-1,0,1 のいずれかが返却される String textA = &quot;aa&quot;; String textB = &quot;bbb&quot;; int compare = textA.compareTo(textB); if(compare &lt; 0) { System.out.println(textA); }else { System.out.println(textB); } &quot;aa&quot;が出力される</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fioioios.hatenablog.com%2Fentry%2F2022%2F08%2F17%2F231643&quot; title=&quot;Javaで2つの文字列を辞書順で比較 - コツコツ学習ブログ&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>2022-08-17 23:16:43</published>
  <title>Javaで2つの文字列を辞書順で比較</title>
  <type>rich</type>
  <url>https://ioioios.hatenablog.com/entry/2022/08/17/231643</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
