<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kamoi-kenichi</author_name>
  <author_url>https://blog.hatena.ne.jp/kamoi-kenichi/</author_url>
  <blog_title>public class 学習録 extends 【IT】 implements 【税務/会計】</blog_title>
  <blog_url>https://blog.kenichikamoi.com/</blog_url>
  <categories>
    <anon>【Java Silver対策】</anon>
  </categories>
  <description>🟢 はじめに 今回は、Java Silverの学習中に引っかかりやすい罠、「String（文字列）の比較」について解説します！ 実は、文字列を比べる時に == を使ってしまうと、思わぬバグを引き起こす原因になります。 RPGのゲームに例えながら、なぜダメなのか、どうすればいいのかを解説していきます。 🚪 合言葉で開く扉（サンプルコード） まずは、こちらのコードを見てみてください。 「まほうのカギ」という合言葉が合っていれば、扉が開くというシンプルなプログラムです。 public class StringCompareRPG { public static void main(String[] …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.kenichikamoi.com%2Fentry%2F2026%2F04%2F16%2F084119&quot; title=&quot;【Java Silver対策】Stringの比較で「==」を使ってはいけない理由 - public class 学習録 extends 【IT】 implements 【税務/会計】&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/k/kamoi-kenichi/20260425/20260425215112.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-04-16 08:41:19</published>
  <title>【Java Silver対策】Stringの比較で「==」を使ってはいけない理由</title>
  <type>rich</type>
  <url>https://blog.kenichikamoi.com/entry/2026/04/16/084119</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
