<?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>System.out.println(&quot;Java学習中&quot;);</blog_title>
  <blog_url>https://blog.kenichikamoi.com/</blog_url>
  <categories>
    <anon>【Java Silver対策】</anon>
  </categories>
  <description>🟢 はじめに Java 15から正式に導入された、超便利な「テキストブロック（&quot;&quot;&quot;）」。 複数行の文章を、見たまんまの形で変数に入れられる「魔法の箱」のような機能です。 今回は、Java Silverの学習中につい引っかかりそうになる「テキストブロックの中でのダブルクォーテーション（&quot;）の扱い」について、RPG風の例え話で分かりやすく解説します！⚔️ 🛡️ 通常の文字列（&quot;）とテキストブロック（&quot;&quot;&quot;）の違い RPGゲームで、勇者がカッコいいセリフを言うシーンを作ってみましょう。 まずは昔ながらの書き方（通常の文字列）です。 // 従来の書き方（1行の文字列） String heroQuot…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.kenichikamoi.com%2Fentry%2F2026%2F04%2F10%2F234840&quot; title=&quot;【Java Silver対策】テキストブロック（&amp;quot;&amp;quot;&amp;quot;）の中で「\&amp;quot;」と書いたらどうなるか？ - System.out.println(&amp;quot;Java学習中&amp;quot;);&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/20260426/20260426215506.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-04-10 23:48:40</published>
  <title>【Java Silver対策】テキストブロック（&quot;&quot;&quot;）の中で「\&quot;」と書いたらどうなるか？</title>
  <type>rich</type>
  <url>https://blog.kenichikamoi.com/entry/2026/04/10/234840</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
