{"id":180,"date":"2023-08-25T06:18:42","date_gmt":"2022-11-05T11:32:39","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/java%e3%81%a7%e3%82%aa%e3%83%9a%e3%83%ac%e3%83%bc%e3%82%bf%e3%82%92%e4%bd%bf%e3%81%86%e6%96%b9%e6%b3%95\/"},"modified":"2025-07-31T21:25:53","modified_gmt":"2025-07-31T12:25:53","slug":"java%e3%81%a7%e3%82%aa%e3%83%9a%e3%83%ac%e3%83%bc%e3%82%bf%e3%82%92%e4%bd%bf%e3%81%86%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%a7%e3%82%aa%e3%83%9a%e3%83%ac%e3%83%bc%e3%82%bf%e3%82%92%e4%bd%bf%e3%81%86%e6%96%b9%e6%b3%95\/","title":{"rendered":"Java\u3067\u30aa\u30da\u30ec\u30fc\u30bf\u3092\u4f7f\u3046\u65b9\u6cd5"},"content":{"rendered":"<p>\u8457\u8005\u306f\u3001\u300c\u66f8\u3044\u3066\u5bc4\u4ed8\u300d\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4e00\u74b0\u3068\u3057\u3066\u3001\u30d5\u30ea\u30fc\u304b\u3064\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u57fa\u91d1\u306b\u5bc4\u4ed8\u3092\u3059\u308b\u3053\u3068\u3092\u9078\u3073\u307e\u3057\u305f\u3002<\/p>\n<h3>\u4ee5\u4e0b\u306f\u65e5\u672c\u8a9e\u3067\u306e\u81ea\u7136\u306a\u8a00\u3044\u56de\u3057\u306e\u4e00\u3064\u3067\u3059\u3002<\/h3>\n<p>\u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3<\/p>\n<p>\u6f14\u7b97\u5b50\u306f\u3001\u3088\u304f\u77e5\u3089\u308c\u305f\u7b97\u8853\u6f14\u7b97\u5b50\u3067\u3042\u308b\u5f15\u304d\u7b97\uff08-\uff09\u3084\u8db3\u3057\u7b97\uff08+\uff09\u3084\u3001\u3088\u308a\u9ad8\u5ea6\u306ainstanceof\u306a\u3069\u30011\u3064\u4ee5\u4e0a\u306e\u8a18\u53f7\u306e\u7d44\u307f\u5408\u308f\u305b\u3067\u3059\u3002\u6f14\u7b97\u5b50\u3092\u5024\u3084\u5909\u6570\u306b\u9069\u7528\u3059\u308b\u3068\u3001\u305d\u306e\u6f14\u7b97\u306b\u3088\u308b\u7d50\u679c\u304c\u5f97\u3089\u308c\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u6f14\u7b97\u306f\u3001\u5909\u6570\u306b\u5272\u308a\u5f53\u3066\u3089\u308c\u308b\u304b\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u6700\u7d42\u76ee\u6a19\u304c\u9054\u6210\u3055\u308c\u308b\u307e\u3067\u3055\u3089\u306b\u8a55\u4fa1\u3055\u308c\u308b\u305f\u3081\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306b\u304a\u3044\u3066\u57fa\u672c\u7684\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u6f14\u7b97\u5b50\u304c\u9069\u7528\u3055\u308c\u308b\u5024\u307e\u305f\u306f\u5909\u6570\u3067\u3042\u308b\u30aa\u30da\u30e9\u30f3\u30c9\u306b\u3064\u3044\u3066\u306e\u7406\u89e3\u304c\u5fc5\u8981\u3067\u3059\u3002\u30aa\u30da\u30e9\u30f3\u30c9\u306e\u6570\u306b\u3088\u3063\u3066\u3001\u6f14\u7b97\u5b50\u306f3\u3064\u306e\u30b0\u30eb\u30fc\u30d7\u306b\u5206\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6700\u521d\u306b\u3001\u64cd\u4f5c\u306b1\u3064\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3057\u304b\u306a\u3044\u5834\u5408\u3001\u6f14\u7b97\u5b50\u306f\u5358\u9805\u3068\u547c\u3070\u308c\u307e\u3059\u3002\u540c\u69d8\u306b\u30012\u3064\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3092\u95a2\u4e0e\u3059\u308b\u4e8c\u9805\u6f14\u7b97\u5b50\u304c\u3042\u308a\u307e\u3059\u3002\u6700\u5f8c\u306b\u30013\u3064\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u304c\u3042\u308b\u5834\u5408\u3001\u6f14\u7b97\u5b50\u306f\u4e09\u9805\u3067\u3059\u3002\u3053\u306e\u5206\u985e\u306b\u5f93\u3044\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306f\u5404\u30bf\u30a4\u30d7\u306e\u6f14\u7b97\u5b50\u306b\u5bfe\u3057\u30663\u3064\u306e\u4e3b\u8981\u306a\u90e8\u5206\u306b\u5206\u3051\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u6570\u5b66\u306e\u65b9\u7a0b\u5f0f\u306a\u3069\u3067\u4f7f\u7528\u3055\u308c\u308b\u3088\u3046\u306a\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u30c7\u30fc\u30bf\u578b\u3092\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306b\u30013\u7a2e\u985e\u306e\u6f14\u7b97\u5b50\u3092\u3059\u3079\u3066\u4f7f\u7528\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u53c2\u7167\u578b\u3067\u3082\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3057\u305f\u3088\u308a\u9ad8\u5ea6\u306a\u30b7\u30ca\u30ea\u30aa\u3084\u3001\u6f14\u7b97\u5b50\u306e\u512a\u5148\u9806\u4f4d\u306e\u3044\u304f\u3064\u304b\u306e\u30eb\u30fc\u30eb\u306b\u3064\u3044\u3066\u3082\u8abf\u3079\u307e\u3059\u3002<\/p>\n<h2>\u524d\u63d0\u6761\u4ef6<\/h2>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u5f93\u3046\u305f\u3081\u306b\u306f\u3001\u4ee5\u4e0b\u304c\u5fc5\u8981\u3067\u3059\uff1a<\/p>\n<ul class=\"post-ul\">\n<li>An environment in which you can execute Java programs to follow along with the examples. To set this up on your local machine, you will need the following:Java (version 11 or above) installed on your machine, with the compiler provided by the Java Development Kit (JDK). For Ubuntu and Debian, follow the steps for Option 1 in our tutorial, How To Install Java with Apt on Ubuntu 22.04. For other operating systems, including Mac and Windows, see the download options for Java installation.<br \/>\nTo compile and run the code examples, this tutorial uses Java Shell, which is a Read-Evaluate-Print Loop (REPL) run from the command line. To get started with JShell, check out the Introduction to JShell guide.<\/li>\n<li>Familiarity with Java and object-oriented programming, which you can find in our tutorial, How To Write Your First Program in Java.<\/li>\n<li>An understanding of Java data types, which is discussed in our tutorial, Understanding Data Types in Java<br \/>\n.<\/li>\n<\/ul>\n<h2>\u5358\u9805\u6f14\u7b97\u5b50<\/h2>\n<p>\u4e00\u9805\u6f14\u7b97\u5b50\u306f\u30011\u3064\u306e\u88ab\u6f14\u7b97\u5b50\u306b\u9069\u7528\u3055\u308c\u308b\u305f\u3081\u3001\u6700\u3082\u76f4\u611f\u7684\u3067\u3059\u3002\u4e00\u9805\u6f14\u7b97\u5b50\u306f\u30b3\u30fc\u30c9\u3092\u7c21\u6f54\u304b\u3064\u8aad\u307f\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u306b\u3088\u304f\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u5897\u6e1b\u5024\u306a\u3069\u306e\u64cd\u4f5c\u3092\u660e\u793a\u7684\u306b\u8a18\u8ff0\u3059\u308b\u5fc5\u8981\u304c\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u4ed6\u306e\u6f14\u7b97\u5b50\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u3068\u3001\u4e00\u9805\u6f14\u7b97\u5b50\u306e\u4f7f\u7528\u306f\u96e3\u3057\u304f\u306a\u308b\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u5f8c\u3067\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001\u5358\u9805\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3057\u3066\u5024\u3092\u5897\u6e1b\u3055\u305b\u3001\u307e\u305f\u771f\u507d\u5024\u3092\u53cd\u8ee2\u3055\u305b\u307e\u3059\u3002<\/p>\n<h3>\u5897\u52a0\u3068\u6e1b\u5c11\u6f14\u7b97\u5b50<\/h3>\n<p>\u5897\u6e1b\u6f14\u7b97\u5b50\u306f\u3001\u305d\u306e\u540d\u524d\u304c\u793a\u3059\u3088\u3046\u306b\u3001\u6570\u5b57\u3092\u5897\u52a0\u3055\u305b\u305f\u308a\u6e1b\u5c11\u3055\u305b\u305f\u308a\u3057\u307e\u3059\u3002\u5897\u52a0\u6f14\u7b97\u5b50\u306f\u3001\u4e8c\u3064\u306e\u30d7\u30e9\u30b9\u8a18\u53f7\uff08++\uff09\u306e\u7d44\u307f\u5408\u308f\u305b\u3067\u3042\u308a\u3001\u6e1b\u5c11\u6f14\u7b97\u5b50\u306f\u4e8c\u3064\u306e\u30de\u30a4\u30ca\u30b9\u8a18\u53f7\uff08&#8211;\uff09\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u6f14\u7b97\u5b50\u306f\u3001\u30aa\u30da\u30e9\u30f3\u30c9\u306e\u524d\u5f8c\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<h4>\u524d\u7f6e\u5897\u5206\u3068\u524d\u7f6e\u6e1b\u5206<\/h4>\n<p>\u30aa\u30da\u30e9\u30f3\u30c9\u306e\u524d\u306b\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001++\u307e\u305f\u306f&#8211;\u3092\u4f7f\u7528\u3059\u308b\u304b\u306b\u3088\u3063\u3066\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u524d\u307e\u305f\u306f\u30c7\u30af\u30ea\u30e1\u30f3\u30c8\u524d\u304c\u884c\u308f\u308c\u307e\u3059\u3002\u30d7\u30ec\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30aa\u30da\u30e9\u30f3\u30c9\u306e\u5024\u304c\u4f7f\u7528\u3059\u308b\u524d\u306b\u5909\u66f4\u3055\u308c\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u5b9f\u969b\u306b\u5024\u3092\u4f7f\u7528\u3059\u308b\u3068\u304d\u306b\u306f\u3059\u3067\u306b\u5909\u66f4\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"post-conf-info\">\n<p class=\"post-conf-desc\">Info<\/p>\n<div>\u60c5\u5831\uff1a\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u4f8b\u30b3\u30fc\u30c9\u306b\u5f93\u3063\u3066\u9032\u3081\u308b\u306b\u306f\u3001jshell\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001\u30ed\u30fc\u30ab\u30eb\u30b7\u30b9\u30c6\u30e0\u4e0a\u3067Java Shell\u30c4\u30fc\u30eb\u3092\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u306e\u5f8c\u3001jshell&gt;\u30d7\u30ed\u30f3\u30d7\u30c8\u306e\u5f8c\u306b\u4f8b\u3092\u8ffd\u52a0\u3059\u308b\u304b\u3001\u30b3\u30d4\u30fc\u3001\u8cbc\u308a\u4ed8\u3051\u3001\u7de8\u96c6\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002jshell\u3092\u7d42\u4e86\u3059\u308b\u306b\u306f\u3001\/exit\u3068\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/div>\n<\/div>\n<p>\u30d7\u30ea\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092jshell\u306b\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">int theAnswer <span class=\"token operator\">=<\/span> <span class=\"token number\">42<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">System.out.println<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#8220;Preincrementing: &#8220;<\/span> + <mark>++<\/mark>theAnswer<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u521d\u306e\u884c\u3067\u3001theAnswer\u3068\u3044\u3046\u5909\u6570\u3092\u502442\u3067\u5b9a\u7fa9\u3057\u307e\u3059\u30022\u884c\u76ee\u3067\u306f\u3001println()\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u5909\u6570\u3092\u51fa\u529b\u3057\u3001\u305d\u308c\u304c\u3069\u306e\u3088\u3046\u306b\u5909\u5316\u3057\u305f\u304b\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u4f8b\u3067\u306e\u524d\u7f6e\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u6f14\u7b97\u5b50\u306f++\u3067\u3042\u308a\u3001theAnswer\u306e\u524d\u306b\u914d\u7f6e\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306b\u524d\u7f6e\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u307e\u305atheAnswer\u306e\u5024\u304c43\u306b\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3055\u308c\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001println()\u304c\u51e6\u7406\u3059\u308b\u6642\u70b9\u3067\u306f\u65e2\u306b43\u306b\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u51fa\u529b\u3055\u308c\u308b\u306e\u306f43\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>theAnswer ==&gt; 42 Preincrementing: 43<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30d7\u30ea\u30c7\u30af\u30ea\u30e1\u30f3\u30c8\u306f\u540c\u69d8\u306b\u6a5f\u80fd\u3057\u307e\u3059\u304c\u3001\u5897\u3084\u3059\u4ee3\u308f\u308a\u306b\u30aa\u30da\u30e9\u30f3\u30c9\u306e\u5024\u3092\u6e1b\u3089\u3057\u307e\u3059\u3002\u3053\u306e\u4f8b\u984c\u3067\u306f\u3001\u30d7\u30ea\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u6f14\u7b97\u5b50++\u306e\u4ee3\u308f\u308a\u306b\u30d7\u30ea\u30c7\u30af\u30ea\u30e1\u30f3\u30c8\u6f14\u7b97\u5b50&#8211;\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h4>\u5f8c\u7f6e\u5897\u5206\u6f14\u7b97\u5b50\u3068\u5f8c\u7f6e\u6e1b\u5206\u6f14\u7b97\u5b50<\/h4>\n<p>\u524d\u7f6e\u6f14\u7b97\u5b50\u3068\u306f\u5bfe\u7167\u7684\u306b\u3001\u5f8c\u7f6e\u6f14\u7b97\u5b50\u306f\u30aa\u30da\u30e9\u30f3\u30c9\u306e\u5024\u3092\u4f7f\u7528\u5f8c\u306b\u5909\u66f4\u3057\u307e\u3059\u3002\u7279\u5b9a\u306e\u4e8b\u4f8b\u3067\u306f\u3001\u5f8c\u7f6e\u3042\u308b\u3044\u306f\u524d\u7f6e\u6f14\u7b97\u5b50\u304c\u3088\u304f\u4f7f\u7528\u3055\u308c\u307e\u3059\u304c\u3001\u5168\u4f53\u7684\u306b\u306f\u500b\u4eba\u306e\u597d\u307f\u306e\u554f\u984c\u3067\u3059\u3002<\/p>\n<p>\u30dd\u30b9\u30c8\u30aa\u30da\u30ec\u30fc\u30bf\u306e\u52d5\u4f5c\u3092\u8aac\u660e\u3059\u308b\u305f\u3081\u306b\u3001theAnswer\u306e\u5024\u3092\u5f8c\u7f6e\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3057\u3001\u305d\u306e\u5024\u306e\u5909\u5316\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u884c\u3092jshell\u306b\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">int theAnswer <span class=\"token operator\">=<\/span> <span class=\"token number\">42<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">System.out.println<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#8220;Postincrementing: &#8220;<\/span> + theAnswer<mark>++<\/mark><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">System.out.println<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#8220;Final value: &#8220;<\/span> + theAnswer<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u521d\u306b\u3001\u5909\u6570\u300ctheAnswer\u300d\u306f42\u3068\u7b49\u3057\u3044\u5024\u3067\u3059\u3002\u305d\u308c\u304b\u3089\u3001\u305d\u308c\u304c\u8868\u793a\u3055\u308c\u3001\u305d\u306e\u5f8c\u306b\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3055\u308c\u307e\u3059\u3002\u6700\u5f8c\u306e\u884c\u3067\u306f\u3001\u6700\u7d42\u7684\u306a\u5024\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u518d\u5ea6\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<p>\u3042\u306a\u305f\u306e\u51fa\u529b\u7d50\u679c\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\uff1a<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>theAnswer ==&gt; 42 Postincrementing: 42 Final value: 43<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3054\u89a7\u306e\u901a\u308a\u3001\u5f8c\u7f6e\u5897\u5206\u306e\u9593\u306ftheAnswer\u306f42\u306e\u307e\u307e\u3067\u3059\u3002\u5f8c\u7f6e\u5897\u5206\u306e\u5f8c\u306b\u518d\u3073\u5370\u5237\u3059\u308b\u3068\u300143\u306b\u306a\u308a\u307e\u3059\uff08\u6700\u7d42\u5024\uff1a43\uff09\u3002<\/p>\n<p>\u5f8c\u7f6e\u30c7\u30af\u30ea\u30e1\u30f3\u30c8\u3082\u540c\u3058\u3088\u3046\u306b\u52d5\u4f5c\u3057\u307e\u3059\u3002\u307e\u305a\u5024\u304c\u53d6\u5f97\u3055\u308c\u3001\u4f7f\u7528\u3055\u308c\u305f\u5f8c\u306b\u30c7\u30af\u30ea\u30e1\u30f3\u30c8\u3055\u308c\u307e\u3059\u3002\u7df4\u7fd2\u3068\u3057\u3066\u3001\u5f8c\u7f6e\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u6f14\u7b97\u5b50++\u3092\u5f8c\u7f6e\u30c7\u30af\u30ea\u30e1\u30f3\u30c8\u6f14\u7b97\u5b50&#8211;\u306b\u7f6e\u304d\u63db\u3048\u3066\u307f\u305f\u308a\u3001\u3042\u308b\u3044\u306f\u524d\u7f6e\u6f14\u7b97\u5b50\u306e\u3044\u305a\u308c\u304b\u3092\u542b\u3081\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u8acb\u6c42\u3055\u308c\u305f\u5185\u5bb9\u3092\u30cd\u30a4\u30c6\u30a3\u30d6\u306a\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\u3001\u300cNOT\u30aa\u30da\u30ec\u30fc\u30bf\u30fc\u300d\u3068\u306a\u308a\u307e\u3059\u3002<\/h3>\n<p>\u8ad6\u7406\u5426\u5b9a\u6f14\u7b97\u5b50\u3068\u3057\u3066\u3082\u77e5\u3089\u308c\u308bNOT\u6f14\u7b97\u5b50\u306f\u3001\u30d6\u30fc\u30eb\u578b\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u306e\u5024\u3092\u53cd\u8ee2\u3055\u305b\u307e\u3059\u3002\u305d\u306e\u8a18\u53f7\u306f\u3001\u611f\u5606\u7b26\u300c!\u300d\u3067\u8868\u3055\u308c\u307e\u3059\u3002\u901a\u5e38\u306f\u3001\u30d6\u30fc\u30eb\u578b\u306e\u5909\u6570\u3084\u5024\u3092\u6301\u3063\u3066\u3044\u3066\u3001\u9006\u306e\u5024\u3092\u4f7f\u3044\u56de\u3057\u305f\u3044\u5834\u5408\u306bNOT\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u7121\u99c4\u306a\u304f\u9006\u306e\u5024\u3092\u6301\u3064\u5225\u306e\u5909\u6570\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u3053\u306b\u306f\u3001NOT\u6f14\u7b97\u5b50\u304c\u52d5\u4f5c\u3059\u308b\u4f8b\u304c\u3042\u308a\u307e\u3059\u3002\u5358\u7d14\u5316\u3059\u308b\u305f\u3081\u306b\u3001true\u306e\u5024\u3092\u53cd\u8ee2\u3055\u305b\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">boolean isJavaFun <span class=\"token operator\">=<\/span> <mark><span class=\"token operator\">!<\/span><\/mark>true<span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">System.out.println<span class=\"token punctuation\">(<\/span>isJavaFun<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>isJavaFun\u3068\u3044\u3046\u30d6\u30fc\u30eb\u5909\u6570\u3092true\u3068\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u305f\u3060\u3057\u3001NOT\u6f14\u7b97\u5b50\u304ctrue\u306e\u524d\u306b\u3042\u308b\u305f\u3081\u3001true\u306e\u5024\u304c\u53cd\u8ee2\u3057\u3066false\u306b\u306a\u308a\u307e\u3059\u3002\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u51fa\u529b\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>isJavaFun ==&gt; false false<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u308c\u304cNOT\u6f14\u7b97\u5b50\u306e\u50cd\u304d\u65b9\u3067\u3059\u3002\u6642\u3005\u6df7\u4e71\u3059\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3057\u3001\u898b\u3064\u3051\u308b\u306e\u3082\u96e3\u3057\u3044\u3053\u3068\u304c\u3042\u308b\u306e\u3067\u3001\u63a7\u3048\u3081\u306b\u4f7f\u7528\u3059\u308b\u3079\u304d\u3067\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u30b1\u30fc\u30b9\u3067\u306f\u3001!true\u306e\u4ee3\u308f\u308a\u306bfalse\u3092\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u3088\u308a\u898b\u3084\u3059\u304f\u76f4\u611f\u7684\u306a\u30a2\u30d7\u30ed\u30fc\u30c1\u3067\u3059\u306e\u3067\u3001\u6b63\u3057\u3044\u65b9\u6cd5\u3067\u3059\u3002\u4e00\u822c\u7684\u306a\u30eb\u30fc\u30eb\u3068\u3057\u3066\u306f\u3001\u8ffd\u52a0\u306e\u64cd\u4f5c\u304c\u5fc5\u8981\u3068\u3055\u308c\u308b\u4ee3\u66ff\u624b\u6bb5\u3088\u308a\u3082\u3001\u76f4\u63a5\u30ea\u30c6\u30e9\u30eb\u3084\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3067\u3059\u3002\u305f\u3060\u3057\u3001\u5834\u5408\u306b\u3088\u3063\u3066\u306f\u305d\u308c\u304c\u610f\u5473\u3092\u306a\u3055\u306a\u3044\u304b\u3001\u307e\u305f\u306f\u4e0d\u53ef\u80fd\u306a\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u30d6\u30fc\u30eb\u5024\u3092\u53cd\u8ee2\u3055\u305b\u308b\u305f\u3081\u306b\u3001NOT\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u4e00\u822c\u7684\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u6587\u5b57\u5217\u304c\u5225\u306e\u6587\u5b57\u5217\u3092\u542b\u3093\u3067\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001contains()\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u9006\u306e\u5834\u5408\uff08\u3064\u307e\u308a\u3001\u6587\u5b57\u5217\u304c\u5225\u306e\u6587\u5b57\u5217\u3092\u542b\u3093\u3067\u3044\u306a\u3044\u5834\u5408\uff09\u306b\u306f\u3001\u7d44\u307f\u8fbc\u307f\u306e\u4ee3\u66ff\u30e1\u30bd\u30c3\u30c9\u306f\u3042\u308a\u307e\u305b\u3093\u3002NOT\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3057\u3066contains()\u3092\u4f7f\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u300cJava is smart.\u300d\u3068\u3044\u3046\u6587\u5b57\u5217\u304c\u3042\u308b\u3068\u60f3\u50cf\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u6761\u4ef6\u3092\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u3001<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u6587\u5b57\u5217\u306b\u306f\u30b9\u30de\u30fc\u30c8\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\u6587\u5b57\u5217\u306b\u306f\u30cf\u30fc\u30c9\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/ol>\n<p>\u3053\u308c\u3089\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">String javaIsSmart <span class=\"token operator\">=<\/span> <span class=\"token string\">&#8220;Java is smart.&#8221;<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">boolean isSmartPartOfJava <span class=\"token operator\">=<\/span> javaIsSmart.contains<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#8220;smart&#8221;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">boolean isHardNotPartOfJava <span class=\"token operator\">=<\/span> <mark><span class=\"token operator\">!<\/span><\/mark>javaIsSmart.contains<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#8220;hard&#8221;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u521d\u306e\u884c\u3067\u3001String\u578b\u306e\u5909\u6570javaIsSmart\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u30022\u884c\u76ee\u3067\u306f\u3001contains()\u30e1\u30bd\u30c3\u30c9\u306e\u7d50\u679c\u3092\u4f7f\u3063\u3066\u3001boolean\u578b\u306e\u5909\u6570isSmartPartOfJava\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u3001\u6587\u5b57\u5217smart\u304cjavaIsSmart\u6587\u5b57\u5217\u306e\u4e00\u90e8\u3067\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u793a\u3057\u307e\u3059\u3002\u540c\u69d8\u306b\u30013\u884c\u76ee\u3067\u306f\u3001boolean\u578b\u306e\u5909\u6570isHardNotPartOfJava\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001javaIsSmart\u306e\u4e2d\u306bhard\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u5834\u5408\u306b\u6c7a\u307e\u308a\u307e\u3059\u3002<\/p>\n<p>jshell\u3067\u3053\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>javaIsSmart ==&gt; &#8220;Java is smart.&#8221; isSmartPartOfJava ==&gt; true isHardNotPartOfJava ==&gt; true<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u51fa\u529b\u306b\u3088\u308b\u3068\u3001<\/p>\n<ul class=\"post-ul\">\n<li>isSmartPartOfJava is true because smart is found in javaIsSmart.<\/li>\n<li>isHardNotPartOfJava is also true because hard is not found in javaIsSmart.<\/li>\n<\/ul>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30aa\u30da\u30e9\u30f3\u30c9\u30921\u3064\u4f7f\u7528\u3057\u3066\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3001\u30c7\u30af\u30ea\u30e1\u30f3\u30c8\u3001\u304a\u3088\u3073\u53cd\u8ee2\u6f14\u7b97\u5b50\u3092\u8abf\u67fb\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u3089\u306e\u6f14\u7b97\u5b50\u306f\u30aa\u30da\u30e9\u30f3\u30c9\u304c1\u3064\u3057\u304b\u306a\u3044\u306b\u3082\u304b\u304b\u308f\u3089\u305a\u3001NOT\u6f14\u7b97\u5b50\u306e\u3088\u3046\u306b\u4f7f\u7528\u3059\u308b\u306e\u304c\u96e3\u3057\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u306f\u30012\u3064\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3092\u6301\u3064\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3057\u3066\u3053\u306e\u77e5\u8b58\u3092\u3055\u3089\u306b\u767a\u5c55\u3055\u305b\u307e\u3059\u3002<\/p>\n<h2>\u30d0\u30a4\u30ca\u30ea\u6f14\u7b97\u5b50<\/h2>\n<p>\u4e8c\u9805\u6f14\u7b97\u5b50\u306f2\u3064\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u306b\u4f5c\u7528\u3057\u3001\u52a0\u7b97\u3084\u6e1b\u7b97\u3068\u3044\u3063\u305f\u7b97\u8853\u6f14\u7b97\u306b\u95a2\u9023\u3057\u3066\u4e00\u822c\u7684\u306b\u4f7f\u308f\u308c\u307e\u3059\u3002\u8ad6\u7406\u6f14\u7b97\u5b50\u3084\u7279\u6b8a\u306a\u95a2\u4fc2\u6f14\u7b97\u5b50instanceof\u3068\u3044\u3063\u305f\u6570\u5b66\u4ee5\u5916\u306e\u4e8c\u9805\u6f14\u7b97\u5b50\u3082\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u304a\u306a\u3058\u307f\u306e\u7b97\u8853\u4e8c\u9805\u6f14\u7b97\u5b50\u304b\u3089\u59cb\u3081\u307e\u3059\u3002<\/p>\n<h3>\u7b97\u8853\u7684\u306a2\u9032\u6f14\u7b97\u5b50<\/h3>\n<p>\u3053\u308c\u3089\u306f\u3001\u52a0\u7b97\uff08+\uff09\u3084\u6e1b\u7b97\uff08-\uff09\u306a\u3069\u306e\u7b97\u8853\u6f14\u7b97\u306b\u4f7f\u7528\u3055\u308c\u308b\u3088\u304f\u77e5\u3089\u308c\u305f\u6f14\u7b97\u5b50\u3067\u3059\u3002\u4ee5\u4e0b\u306b\u52a0\u7b97\u306e\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">int theAnswer <span class=\"token operator\">=<\/span> <span class=\"token number\">40<\/span> <mark>+<\/mark> <span class=\"token number\">2<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">System.out.println<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#8220;The result is: &#8220;<\/span> + theAnswer<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u521d\u306e\u884c\u3067\u30012\u306b40\u3092\u8db3\u3057\u3066theAnswer\u5909\u6570\u306b\u7d50\u679c\u3092\u4ee3\u5165\u3057\u307e\u3059\u3002\u305d\u308c\u3092\u8868\u793a\u3059\u308b\u3068\u3001\u6700\u7d42\u5024\u306f42\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>The result is: 42<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>**NOTE:** \u7b97\u8853\u6f14\u7b97\u3060\u3051\u3067\u306a\u304f\u3001\u6587\u5b57\u5217\u3092\u7d50\u5408\u3059\u308b\u305f\u3081\u306b\u3082\u30d7\u30e9\u30b9\u8a18\u53f7\uff08+\uff09\u304c\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u4f7f\u7528\u6cd5\u306f\u3001\u3059\u3067\u306b\u4f8b\u3067\u898b\u3066\u304d\u305f\u3088\u3046\u306b\u3001\u5024\u3092\u51fa\u529b\u3059\u308b\u969b\u306b\u4f7f\u308f\u308c\u307e\u3059\u3002\u305d\u3053\u3067\u306f\u3001\u30d7\u30e9\u30b9\u8a18\u53f7\u3092\u4f7f\u3063\u3066\u3001&#8221;The result is: &#8220;\u3068\u5909\u6570theAnswer\u3092\u7d50\u5408\u3057\u3066\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u3053\u306e\u30d7\u30e9\u30b9\u8a18\u53f7\u306e\u4f7f\u7528\u6cd5\u306f\u4f8b\u5916\u3067\u3042\u308a\u3001\u4ed6\u306e\u7b97\u8853\u6f14\u7b97\u5b50\u306f\u53c2\u7167\u578b\u306b\u5bfe\u3057\u3066\u540c\u69d8\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u4f8b\u3048\u3070\u6587\u5b57\u5217\u306e\u4e00\u90e8\u3092\u524a\u9664\u3059\u308b\u305f\u3081\u306b\u30de\u30a4\u30ca\u30b9\u8a18\u53f7\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/div>\n<\/div>\n<p>\u8ffd\u52a0\u306e\u7df4\u7fd2\u3068\u3057\u3066\u3001Java\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u4ed6\u306e\u7b97\u8853\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u4ee3\u5165\u6f14\u7b97\u5b50<\/h3>\n<p>\u4ee3\u5165\u6f14\u7b97\u5b50\u306f\u5de6\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3092\u53f3\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u306e\u5024\u306b\u5272\u308a\u5f53\u3066\u307e\u3059\u3002\u901a\u5e38\u3001\u5de6\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u306f\u5909\u6570\u3067\u3042\u308a\u3001\u53f3\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u306f\u5024\u307e\u305f\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3078\u306e\u53c2\u7167\u3067\u3059\u3002\u3053\u308c\u306f\u304a\u305d\u3089\u304f\u304a\u306a\u3058\u307f\u306e\u97f3\u306b\u805e\u3053\u3048\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u3059\u3079\u3066\u306e\u4f8b\u3067\u3053\u306e\u3088\u3046\u306a\u4ee3\u5165\u3092\u4f7f\u7528\u3057\u3066\u304d\u307e\u3057\u305f\u3002\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u57fa\u672c\u7684\u306a\u4ee3\u5165\u6f14\u7b97\u5b50\u3001\u3044\u304f\u3064\u304b\u306e\u8907\u5408\u4ee3\u5165\u6f14\u7b97\u5b50\u3001\u304a\u3088\u3073\u30ad\u30e3\u30b9\u30c8\u6f14\u7b97\u5b50\u306e\u4f7f\u7528\u65b9\u6cd5\u3092\u7df4\u7fd2\u3057\u307e\u3059\u3002<\/p>\n<p>\u57fa\u672c\u7684\u306a\u4ee3\u5165\u6f14\u7b97\u5b50(=)\u306f\u3001\u3088\u304f\u77e5\u3089\u308c\u3066\u304a\u308a\u3001\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b\u6f14\u7b97\u5b50\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">int x <mark><span class=\"token operator\">=<\/span><\/mark> <span class=\"token number\">1<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001int\u578b\u306e\u5909\u6570x\u3092\u5ba3\u8a00\u3057\u3001\u305d\u306e\u5024\u30921\u306b\u5272\u308a\u5f53\u3066\u307e\u3059\u3002\u30a4\u30b3\u30fc\u30eb\u8a18\u53f7\uff08=\uff09\u3092\u4f7f\u7528\u3057\u3066\u5909\u6570\u306b\u5024\u3092\u5272\u308a\u5f53\u3066\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4>\u8907\u5408\u4ee3\u5165\u6f14\u7b97\u5b50 (\u3075\u304f\u3054\u3046\u3060\u3044\u306b\u3085\u3046\u3048\u3093\u3056\u3093\u3057)<\/h4>\n<p>\u8907\u5408\u4ee3\u5165\u6f14\u7b97\u5b50\uff08+=\u3001-=\u3001*=\u3001\\=\uff09\u306f\u3001\u4ee3\u5165\u3068\u52a0\u7b97\u3084\u6e1b\u7b97\u306a\u3069\u306e\u8ffd\u52a0\u306e\u7b97\u8853\u6f14\u7b97\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u3082\u306e\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u7169\u96d1\u306a\u30b3\u30fc\u30c9\u3092\u907f\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u7279\u306b\u7c21\u5358\u306b\u7406\u89e3\u3067\u304d\u308b\u7b97\u8853\u6f14\u7b97\u306b\u304a\u3044\u3066\u3001\u3053\u306e\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u52b9\u7387\u7684\u306a\u30b3\u30fc\u30c9\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u8ffd\u52a0\u3068\u4ee3\u5165\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u305f\u3081\u306b\u3001\u8907\u5408\u7684\u306a+=\u4ee3\u5165\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">int x <span class=\"token operator\">=<\/span> <span class=\"token number\">1<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">int y <span class=\"token operator\">=<\/span> <span class=\"token number\">1<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">x <mark><span class=\"token operator\">+=<\/span><\/mark> y<span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">System.out.println<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#8220;x is: &#8220;<\/span> + x<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u521d\u306e2\u884c\u3067\u306f\u3001x\u3068y\u3068\u3044\u30462\u3064\u306e\u6574\u6570\u5909\u6570\u3092\u5ba3\u8a00\u3057\u3001\u4e21\u65b9\u306b\u50241\u3092\u5272\u308a\u5f53\u3066\u307e\u3059\u3002\u6b21\u306b\u3001x\u3092\u8907\u5408\u4ee3\u5165\u6f14\u7b97\u5b50\u3068\u3057\u3066\u518d\u4ee3\u5165\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001x\u306by\u304c\u52a0\u7b97\u3055\u308c\u305f\u5f8c\u3001\u518d\u3073x\u306b\u5272\u308a\u5f53\u3066\u3089\u308c\u308b\u3068\u3044\u3046\u610f\u5473\u3067\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306f\u3001\u6b21\u306e\u3088\u3046\u306a\u51fa\u529b\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>x ==&gt; 1 y ==&gt; 1 $11 ==&gt; 2 x is: 2<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u51fa\u529b\u306b\u3088\u308b\u3068\u3001x\u3068y\u306f\u50241\u3092\u53d6\u5f97\u3057\u307e\u3059\u30023\u884c\u76ee\u306b\u306f\u3001\u30e9\u30f3\u30c0\u30e0\u306b\u5272\u308a\u5f53\u3066\u3089\u308c\u305f\u540d\u524d\uff08$11\uff09\u3092\u6301\u3064\u4e00\u6642\u5909\u6570\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u8907\u5408\u4ee3\u5165\u6f14\u7b97\u306e\u7d50\u679c\u3068\u3057\u3066x\u306e\u5024\u3092\u4fdd\u6301\u3057\u3066\u3044\u307e\u3059\u3002\u6700\u5f8c\u306e\u884c\u3067\u306f\u3001x\u306e\u5024\u304c2\u3068\u3057\u3066\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u540c\u3058\u30b3\u30fc\u30c9\u306f\u3001\u8907\u5408\u4ee3\u5165\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u305b\u305a\u306b\u6b21\u306e\u3088\u3046\u306b\u66f8\u304d\u76f4\u3059\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">int x <span class=\"token operator\">=<\/span> <span class=\"token number\">1<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">int y <span class=\"token operator\">=<\/span> <span class=\"token number\">1<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\"><mark>x <span class=\"token operator\">=<\/span> x + y<span class=\"token punctuation\">;<\/span><\/mark><\/li>\n<li data-prefix=\"jshell&gt;\">System.out.println<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#8220;x is: &#8220;<\/span> + x<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u524d\u306e\u4f8b\u3068\u306f\u5bfe\u7167\u7684\u306b\u30013\u884c\u76ee\u306bx\u3068y\u306e\u52a0\u7b97\u3092\u660e\u793a\u7684\u306b\u8a18\u8ff0\u3059\u308b\u305f\u3081\u306b\u8ffd\u52a0\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u51fa\u529b\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>x ==&gt; 1 y ==&gt; 1 x ==&gt; 2 x is: 2<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u7d42\u7684\u306b\u3001\u4e21\u4f8b\u3067x\u306f2\u306b\u7b49\u3057\u3044\u3067\u3059\u3002\u305f\u3060\u3057\u30012\u756a\u76ee\u306e\u4f8b\u3067\u306f\u3001jshell\u306f$11\u306a\u3069\u306e\u4e00\u6642\u5909\u6570\u540d\u3092\u51fa\u529b\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u4ee3\u308f\u308a\u306b\u3001\u5024\u304c\u5909\u5316\u3057\u305f\u3053\u3068\u3092\u793a\u3059\u305f\u3081\u306bx\u3092\u76f4\u63a5\u4f7f\u7528\u3057\u307e\u3057\u305f\uff08x ==&gt; 2\uff09\u3002\u3053\u306e\u3088\u3046\u306a\u5197\u9577\u306a\u51fa\u529b\u306f\u5b66\u7fd2\u306b\u975e\u5e38\u306b\u5f79\u7acb\u3061\u3001jshell\u3067\u306e\u307f\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u8907\u5408\u4ee3\u5165\u6f14\u7b97\u5b50\u306e\u6b8b\u308a\u306e\u7d44\u307f\u5408\u308f\u305b\u306b\u306f\u3001\u6e1b\u7b97(-=)\u3001\u4e57\u7b97(*=)\u3001\u9664\u7b97(\/=)\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u4e0a\u8a18\u306e\u4f8b\u3092\u5909\u66f4\u3057\u3066\u3001\u305d\u308c\u3089\u304c\u3069\u306e\u3088\u3046\u306b\u6a5f\u80fd\u3059\u308b\u304b\u3092\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u8907\u5408\u6f14\u7b97\u5b50\u306b\u3064\u3044\u3066\u77e5\u3063\u3066\u304a\u304f\u3053\u3068\u306f\u91cd\u8981\u3067\u3059\u3002\u306a\u305c\u306a\u3089\u3001\u3088\u304f\u4f7f\u7528\u3055\u308c\u308b\u304b\u3089\u3067\u3059\u3002\u305f\u3060\u3057\u3001\u8907\u5408\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306b\u306f\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u4e0a\u306e\u5229\u70b9\u306f\u3042\u308a\u307e\u305b\u3093\u306e\u3067\u3001\u4f7f\u7528\u3059\u308b\u304b\u3069\u3046\u304b\u306f\u500b\u4eba\u306e\u9078\u629e\u3067\u3059\u3002\u3082\u3057\u3082\u8907\u5408\u6f14\u7b97\u5b50\u304c\u4e0d\u5fc5\u8981\u306b\u6df7\u4e71\u3092\u62db\u304f\u3088\u3046\u3067\u3042\u308c\u3070\u3001\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<h4>\u30ad\u30e3\u30b9\u30c6\u30a3\u30f3\u30b0\u6f14\u7b97\u5b50<\/h4>\n<p>\u6700\u5f8c\u306b\u78ba\u8a8d\u3059\u308b\u306e\u306f\u3001\u30ad\u30e3\u30b9\u30c6\u30a3\u30f3\u30b0\u6f14\u7b97\u5b50\u3067\u3059\u3002\u3053\u308c\u306f\u30c7\u30fc\u30bf\u30bf\u30a4\u30d7\u3092\u62ec\u5f27\u3067\u56f2\u3093\u3060\u3082\u306e\u3001\u3064\u307e\u308a\uff08\u30c7\u30fc\u30bf\u30bf\u30a4\u30d7\uff09\u3067\u3059\u3002\u30ad\u30e3\u30b9\u30c6\u30a3\u30f3\u30b0\u6f14\u7b97\u5b50\u306f\u3001\u5024\u3092\u30ad\u30e3\u30b9\u30c8\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u3042\u308b\u30c7\u30fc\u30bf\u30bf\u30a4\u30d7\u3092\u5225\u306e\u30c7\u30fc\u30bf\u30bf\u30a4\u30d7\u3068\u3057\u3066\u89e3\u91c8\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u578b\u306f\u4e92\u63db\u6027\u304c\u5fc5\u8981\u3067\u3059\u3002\u3069\u306e\u30c7\u30fc\u30bf\u578b\u304c\u4e92\u63db\u6027\u3092\u6301\u3064\u304b\u306f\u3001\u30af\u30e9\u30b9\u304c\u89aa\u3084\u5144\u5f1f\u95a2\u4fc2\u306b\u3042\u308b\u304b\u3069\u3046\u304b\u306a\u3069\u306e\u95a2\u4fc2\u306b\u3088\u3063\u3066\u6c7a\u307e\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u6574\u6570\u3092\u683c\u7d0d\u3059\u308b\u305f\u3081\u306bint\u578b\u3068short\u578b\u306f\u5909\u63db\u3067\u304d\u307e\u3059\u3002\u3057\u304b\u3057\u3001int\u578b\u3092boolean\u578b\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u3053\u308c\u3089\u306e\u30c7\u30fc\u30bf\u578b\u306f\u4e92\u63db\u6027\u304c\u306a\u3044\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30ad\u30e3\u30b9\u30c8\u306e\u4e00\u822c\u7684\u306a\u4f8b\u3084\u554f\u984c\u306b\u3064\u3044\u3066\u63a2\u7a76\u3057\u307e\u3059\u3002\u6559\u80b2\u76ee\u7684\u3067\u3001\u307e\u305a\u306f\u6b63\u3057\u304f\u306a\u304f\u4e92\u63db\u6027\u306e\u306a\u3044\u30ad\u30e3\u30b9\u30c8\u304b\u3089\u59cb\u3081\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">boolean y <span class=\"token operator\">=<\/span> <mark><span class=\"token punctuation\">(<\/span>boolean<span class=\"token punctuation\">)<\/span><\/mark> <span class=\"token number\">1<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u884c\u3067\u306f\u3001\u6574\u6570\u306e1\u3092\u30d6\u30fc\u30eb\u5024\u306b\u30ad\u30e3\u30b9\u30c8\u3057\u3066\u3001\u5909\u6570y\u306b\u5272\u308a\u5f53\u3066\u3088\u3046\u3068\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3092jshell\u306b\u8cbc\u308a\u4ed8\u3051\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>| Error: | incompatible types: int cannot be converted to boolean | boolean y = (boolean) 1; |<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u8aac\u660e\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u306b\u3001int\u306e\u5024\u3092boolean\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002boolean\u306e\u5024\u306ftrue\u307e\u305f\u306ffalse\u306e\u3044\u305a\u308c\u304b\u3067\u3042\u308a\u30011\u304c\u3069\u306eboolean\u5024\u306b\u306a\u308b\u304b\u3092\u7279\u5b9a\u3059\u308b\u3053\u3068\u306f\u4e0d\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u4eca\u5ea6\u306f\u3001\u4e92\u63db\u6027\u306e\u3042\u308b\u30c7\u30fc\u30bf\u578b\u3092\u4f7f\u3063\u305f\u4f8b\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u6574\u6570\u3092\u4fdd\u5b58\u3059\u308b\u305f\u3081\u306b\u30012\u3064\u306e\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u306a\u30c7\u30fc\u30bf\u578b\u3001int\u3068short\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u305d\u306e\u9055\u3044\u306f\u5bb9\u91cf\u306b\u3042\u308a\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u60c5\u5831\u3092\u4fdd\u5b58\u3059\u308b\u305f\u3081\u306e\u5229\u7528\u53ef\u80fd\u306a\u30e1\u30e2\u30ea\u91cf\u3067\u3059\u3002int\u306f\u3088\u308a\u5927\u304d\u306a\u5bb9\u91cf\u3092\u6301\u3061\u3001\u3057\u305f\u304c\u3063\u3066\u3088\u308a\u5927\u304d\u306a\u6570\u5024\u3092\u4fdd\u5b58\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>jshell\u306b\u4ee5\u4e0b\u306e\u884c\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">int prize <span class=\"token operator\">=<\/span> <span class=\"token number\">32767<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">short wonPrize <span class=\"token operator\">=<\/span> <mark><span class=\"token punctuation\">(<\/span>short<span class=\"token punctuation\">)<\/span><\/mark> prize<span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">System.out.println<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#8220;You won: &#8220;<\/span> + wonPrize<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u521d\u306e\u884c\u3067\u306f\u300132767\u3068\u3044\u3046\u5024\u3092\u6301\u3064int\u306e\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u3092\u62bd\u9078\u8cde\u91d1\u3068\u3057\u3066\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u3057\u304b\u3057\u306a\u304c\u3089\u30012\u884c\u76ee\u3067\u306f\u3001wonprize\u306e\u5024\u306b\u306fshort\u306e\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u306e\u65b9\u304c\u9069\u3057\u3066\u3044\u308b\u3068\u5224\u65ad\u3057\u3001(short)\u3092\u4f7f\u3063\u3066prize\u3092short\u306b\u30ad\u30e3\u30b9\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3092jshell\u3067\u5b9f\u884c\u3059\u308b\u3068\u3001\u51fa\u529b\u7d50\u679c\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>prize ==&gt; 32767 wonPrize ==&gt; 32767 You won: 32767<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u51fa\u529b\u306f\u3001\u8cde\u3068\u7372\u5f97\u8cde\u91d1\u306e\u5024\u304c\u6b63\u3057\u304f32767\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3059\u3002\u6700\u5f8c\u306e\u884c\u3067\u306f\u3001\u7372\u5f97\u8cde\u91d1\u5909\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u3042\u306a\u305f\u304c\u3044\u304f\u3089\u52dd\u3063\u305f\u304b\u3092\u8ff0\u3079\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>int\u3068short\u306e\u5834\u5408\u3001\u30ad\u30e3\u30b9\u30c6\u30a3\u30f3\u30b0\u306f\u4e0d\u8981\u306e\u3088\u3046\u306b\u898b\u3048\u3001\u5b9f\u969b\u306b\u306f\u305d\u306e\u3088\u3046\u306a\u30ad\u30e3\u30b9\u30c6\u30a3\u30f3\u30b0\u3092\u898b\u308b\u3053\u3068\u306f\u307b\u307c\u3042\u308a\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u3001\u3053\u306e\u4f8b\u306f\u30ad\u30e3\u30b9\u30c6\u30a3\u30f3\u30b0\u306e\u8003\u3048\u65b9\u3092\u793a\u3059\u305f\u3081\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n<p>\u30ad\u30e3\u30b9\u30c8\u306f\u7c21\u5358\u306a\u3088\u3046\u3067\u3059\u304c\u3001\u4e00\u3064\u6ce8\u610f\u70b9\u304c\u3042\u308a\u307e\u3059\u3002\u5927\u5bb9\u91cf\u306e\u30c7\u30fc\u30bf\u578b\u304b\u3089\u5c0f\u5bb9\u91cf\u306e\u30c7\u30fc\u30bf\u578b\u306b\u30ad\u30e3\u30b9\u30c8\u3059\u308b\u5834\u5408\u3001\u5c0f\u5bb9\u91cf\u306e\u5236\u9650\u3092\u8d85\u3048\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3001\u30aa\u30fc\u30d0\u30fc\u30d5\u30ed\u30fc\u3068\u547c\u3070\u308c\u307e\u3059\u3002\u3053\u306e\u554f\u984c\u3092\u793a\u3059\u305f\u3081\u306b\u3001\u524d\u306e\u4f8b\u3092\u518d\u5229\u7528\u3057\u3066\u3001\u8cde\u91d1\u309232768\u306b\u5897\u3084\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">int prize <span class=\"token operator\">=<\/span> <span class=\"token number\">32768<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">short wonPrize <span class=\"token operator\">=<\/span> <span class=\"token punctuation\">(<\/span>short<span class=\"token punctuation\">)<\/span> prize<span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">System.out.println<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#8220;You won: &#8220;<\/span> + wonPrize<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4e0a\u8a18\u3092jshell\u3067\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>prize ==&gt; 32768 wonPrize ==&gt; -32768 You won: -32768<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u5834\u5408\u3001\u60c5\u5831\u3092\u5931\u3044\u3001\u4e88\u671f\u3057\u306a\u3044\u7d50\u679c\u3092\u5f97\u307e\u3059\u3002short\u578b\u306b\u30ad\u30e3\u30b9\u30c8\u3059\u308b\u3068\u300132768\u306e\u5024\u304c-32768\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001short\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u5bb9\u91cf\u304c-32768\u304b\u308932767\u307e\u3067\u306e\u7bc4\u56f2\u306b\u3042\u308b\u305f\u3081\u3067\u3059\u3002\u6700\u5927\u5024\u3088\u308a\u5927\u304d\u306a\u5024\u3092\u683c\u7d0d\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u30aa\u30fc\u30d0\u30fc\u30d5\u30ed\u30fc\u304c\u767a\u751f\u3057\u3001\u6700\u521d\u304b\u3089\u958b\u59cb\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u300132768\u3092\u683c\u7d0d\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u6700\u5927\u5bb9\u91cf\uff0832767\uff09\u3092\u8d85\u3048\u308b\u305f\u3081\u3001\u6b21\u306e\u5024\u306f\u6700\u5c0f\u53ef\u80fd\u5024\u304b\u3089\u5272\u308a\u5f53\u3066\u3089\u308c\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u3001\u6700\u5c0f\u5024\u3067\u3042\u308b-32768\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0a\u306e\u51fa\u529b\u304c\u4e88\u60f3\u5916\u306b\u898b\u3048\u308b\u306e\u306f\u305d\u306e\u305f\u3081\u3067\u3059 &#8211; \u6700\u7d42\u7684\u306a\u5831\u916c\u304c\u30de\u30a4\u30ca\u30b9\u306e\u6570\u5024\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002\u3053\u306e\u3088\u3046\u306a\u554f\u984c\u306f\u5e38\u306b\u7c21\u5358\u306b\u306f\u898b\u3064\u3051\u3089\u308c\u306a\u3044\u306e\u3067\u3001\u6ce8\u610f\u6df1\u304f\u30ad\u30e3\u30b9\u30c8\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002Java\u30b7\u30ea\u30fc\u30ba\u306e\u5c06\u6765\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u6271\u308f\u308c\u308b\u3088\u3046\u306a\u3088\u308a\u8907\u96d1\u306a\u30b7\u30ca\u30ea\u30aa\u3067\u306f\u3001\u30ad\u30e3\u30b9\u30c8\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u95a2\u4fc2\u6f14\u7b97\u5b50 (Kankei enzanshi)<\/h3>\n<p>\u95a2\u4fc2\u6f14\u7b97\u5b50\u306f2\u3064\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3092\u6bd4\u8f03\u3057\u3001\u771f\u507d\u5024\u306e\u7d50\u679c\u3092\u8fd4\u3057\u307e\u3059\u3002\u3082\u3057\u95a2\u4fc2\u304c\u6210\u7acb\u3059\u308b\u5834\u5408\u3001\u7d50\u679c\u306f\u771f\u3067\u3059\u3002\u305d\u3046\u3067\u306a\u3051\u308c\u3070\u3001\u7d50\u679c\u306f\u507d\u3067\u3059\u3002<\/p>\n<p>\u6700\u521d\u306e\u7a2e\u985e\u306e\u95a2\u4fc2\u6f14\u7b97\u5b50\u306f\u7b49\u3057\u3044 == \u3068\u7b49\u3057\u304f\u306a\u3044 != \u3067\u3059\u3002\u3053\u308c\u3089\u306f\u5024\u3084\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u7b49\u4fa1\u6027\u3092\u4e3b\u5f35\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u57fa\u672c\u5024\u3084\u30ea\u30c6\u30e9\u30eb\u306e\u5834\u5408\u3001\u6570\u5b66\u3068\u540c\u69d8\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u7b49\u53f7\u6f14\u7b97\u5b50\u3092\u793a\u3059\u305f\u3081\u306b\u30012\u3064\u306e\u6574\u6570\u30ea\u30c6\u30e9\u30eb\u3092\u6bd4\u8f03\u3057\u307e\u3059\u3002\u5b9f\u969b\u306b\u306f\u3001\u540c\u3058\u6570\u3067\u3042\u308b1\u3067\u3059\u3002\u81ea\u5206\u81ea\u8eab\u3068\u6bd4\u8f03\u3057\u3066\u7b49\u3057\u3044\u304b\u3069\u3046\u304b\u3092\u6bd4\u8f03\u3057\u3001\u771f\u306e\u7d50\u679c\u3092\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092jshell\u306b\u8cbc\u308a\u4ed8\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">System.out.println<span class=\"token punctuation\">(<\/span><mark><span class=\"token number\">1<\/span><span class=\"token operator\">==<\/span><span class=\"token number\">1<\/span><\/mark><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u306f\u30011\u304c1\u3068\u7b49\u3057\u3044\u304b\u3069\u3046\u304b\u3092\u30a2\u30b5\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u6570\u5024\u304c\u7b49\u3057\u3044\u306e\u3067\u3001\u3053\u306e\u5f0f\u306ftrue\u3068\u8a55\u4fa1\u3055\u308c\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001println()\u306ftrue\u3092\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>true<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u7df4\u7fd2\u3068\u3057\u3066\u3001\u507d\u306e\u7d50\u679c\u3092\u5f97\u308b\u305f\u3081\u306b\u5024\u306e\u4e00\u3064\u3092\u5909\u66f4\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1a\u7b49\u53f7\uff08==\uff09\u3068\u4ee3\u5165\u6f14\u7b97\u5b50\uff08=\uff09\u306e\u9055\u3044\u3092\u78ba\u5b9f\u306b\u533a\u5225\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u308c\u3089\u304c\u7570\u306a\u308b\u3053\u3068\u3092\u77e5\u3063\u3066\u3044\u3066\u3082\u3001\u6df7\u540c\u3059\u308b\u3053\u3068\u304c\u7c21\u5358\u3067\u3059\u3002\u30b3\u30fc\u30c9\u306b\u69cb\u6587\u30a8\u30e9\u30fc\u304c\u751f\u3058\u306a\u3044\u5834\u5408\u3082\u3042\u308a\u3001\u3053\u308c\u306b\u3088\u308a\u30c7\u30d0\u30c3\u30b0\u304c\u56f0\u96e3\u306a\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/div>\n<\/div>\n<p>\u539f\u59cb\u5024\u3092\u6bd4\u8f03\u3059\u308b\u306e\u3068\u306f\u7570\u306a\u308a\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u7b49\u3057\u3044\u304b\u3069\u3046\u304b\u6bd4\u8f03\u3059\u308b\u65b9\u304c\u8907\u96d1\u3067\u3059\u3002\u306a\u305c\u306a\u3089\u3001\u4e8c\u3064\u306e\u5909\u6570\u304c\u540c\u3058\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6307\u3057\u3066\u3044\u308b\u304b\u3092\u5224\u65ad\u3059\u308b\u304b\u3089\u3067\u3059\u3002\u4f8b\u3048\u3070\u3001\u4e8c\u3064\u306eInteger\u3092\u6bd4\u8f03\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">Integer myAnswer <span class=\"token operator\">=<\/span> Integer.valueOf<span class=\"token punctuation\">(<\/span><span class=\"token number\">42<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">Integer yourAnswer <span class=\"token operator\">=<\/span> Integer.valueOf<span class=\"token punctuation\">(<\/span><span class=\"token number\">42<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">System.out.println<span class=\"token punctuation\">(<\/span><mark>myAnswer <span class=\"token operator\">==<\/span> yourAnswer<\/mark><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001\u5024\u304c42\u306e2\u3064\u306e\u6574\u6570\u5909\u6570\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u6700\u5f8c\u306e\u884c\u3067\u306f\u3001\u305d\u308c\u3089\u3092\u7b49\u3057\u304f\u6bd4\u8f03\u3057\u3001\u7b49\u3057\u3044\u5834\u5408\u306b\u306ftrue\u3092\u51fa\u529b\u3057\u307e\u3059\u3002\u4ee5\u524d\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u300cJava\u306b\u304a\u3051\u308b\u30c7\u30fc\u30bf\u578b\u306e\u7406\u89e3\u300d\u3067\u306f\u3001Integer.valueOf\uff08\uff09\u304c\u307e\u305a\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u78ba\u8a8d\u3057\u3001\u540c\u3058\u5024\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u3059\u3067\u306b\u5b58\u5728\u3059\u308b\u5834\u5408\u306f\u540c\u3058\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8fd4\u3057\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001myAnswer\u3068yourAnswer\u306f\u540c\u3058\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d7\u3051\u53d6\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3092jshell\u306b\u8cbc\u308a\u4ed8\u3051\u308b\u3068\u3001\u4e0b\u8a18\u306e\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>myAnswer ==&gt; 42 yourAnswer ==&gt; 42 true<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u306e\u3088\u3046\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u6bd4\u8f03\u306f\u7c21\u5358\u306b\u601d\u3048\u307e\u3059\u304c\u3001\u6642\u306b\u306f\u96e3\u3057\u3044\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002\u6700\u3082\u6df7\u4e71\u3059\u308b\u4f8b\u306f\u6587\u5b57\u5217\u3067\u3059\u3002\u540c\u3058\u5024\u3092\u6301\u3064\u4e8c\u3064\u306e\u6587\u5b57\u5217\u3092\u6bd4\u8f03\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">String answer1 <span class=\"token operator\">=<\/span> new String<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#8220;yes&#8221;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">String answer2 <span class=\"token operator\">=<\/span> new String<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#8220;yes&#8221;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">System.out.println<span class=\"token punctuation\">(<\/span><mark>answer1 <span class=\"token operator\">==<\/span> answer2<\/mark><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u521d\u306b\u3001&#8221;yes&#8221;\u3068\u3044\u3046\u5024\u3092\u6301\u3064\u4e8c\u3064\u306e\u65b0\u3057\u3044String\u5909\u6570(answer1\u3068answer2)\u3092\u5ba3\u8a00\u3057\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u65b0\u3057\u3044\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u65b0\u3057\u3044String\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002\u305d\u306e\u305f\u3081\u3001\u4e8c\u3064\u306e\u5909\u6570\u306f\u540c\u3058\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6307\u3057\u3066\u3044\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u5b9f\u969b\u306b\u306f\u5024\u304c\u540c\u3058\u3067\u3042\u308b\u5225\u3005\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6307\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3092jshell\u306b\u8cbc\u308a\u4ed8\u3051\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u51fa\u529b\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>answer1 ==&gt; &#8220;yes&#8221; answer2 ==&gt; &#8220;yes&#8221; false<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u56de\u7b541\u3068\u56de\u7b542\u306f\u540c\u3058\u5024\uff08\u300c\u306f\u3044\u300d\uff09\u3092\u6301\u3063\u3066\u3044\u308b\u306b\u3082\u304b\u304b\u308f\u3089\u305a\u3001\u305d\u308c\u3089\u306e\u7b49\u4fa1\u6027\u306ffalse\u3068\u8a55\u4fa1\u3055\u308c\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u5f7c\u3089\u306f\u7b49\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u3082\u3057\u3001\u56de\u7b54\u304c\u4e21\u65b9\u3068\u3082\u80af\u5b9a\u7684\u3067\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u6bd4\u8f03\u3059\u308b\u3053\u3068\u3092\u610f\u56f3\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u305d\u3057\u3066\u4e0b\u5c64\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u306f\u8208\u5473\u304c\u306a\u3044\u5834\u5408\u3001\u3053\u308c\u306f\u6df7\u4e71\u3059\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3053\u306e\u76ee\u7684\u306e\u305f\u3081\u306b\u3001String\u3092\u542b\u3080\u591a\u304f\u306e\u30af\u30e9\u30b9\u306b\u306f\u7b49\u4fa1\u6027\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306e\u5c02\u7528\u306e\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>String\u306e\u5834\u5408\u3001\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306fequals()\u3067\u3059\u3002\u6b21\u306e\u3088\u3046\u306b\u30b3\u30fc\u30c9\u3092\u5909\u66f4\u3057\u3066\u3001equals()\u3092\u4f7f\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff08==\u306e\u4ee3\u308f\u308a\u306b\uff09\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">String answer1 <span class=\"token operator\">=<\/span> new String<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#8220;yes&#8221;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">String answer2 <span class=\"token operator\">=<\/span> new String<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#8220;yes&#8221;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">System.out.println<span class=\"token punctuation\">(<\/span>answer1.<mark>equals<span class=\"token punctuation\">(<\/span>answer2<span class=\"token punctuation\">)<\/span><\/mark><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>equals()\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u6bd4\u8f03\u3055\u308c\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u542b\u307e\u308c\u308b\u6587\u5b57\u5217\u304c\u7b49\u3057\u3044\u304b\u3092\u691c\u8a3c\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3092jshell\u306b\u8cbc\u308a\u4ed8\u3051\u308b\u3068\u3001\u6b21\u306e\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>answer1 ==&gt; &#8220;yes&#8221; answer2 ==&gt; &#8220;yes&#8221; true<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u51fa\u529b\u306f\u524d\u306e\u51fa\u529b\u3068\u4f3c\u3066\u3044\u307e\u3059\u304c\u3001true\u3067\u7d42\u308f\u308a\u3001\u305d\u308c\u306b\u3088\u308a2\u3064\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5024\u304c\u7b49\u3057\u3044\u3053\u3068\u304c\u78ba\u8a8d\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u4f8b\u306f\u3001\u53c2\u7167\u578b\u3092\u6bd4\u8f03\u3059\u308b\u969b\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3001\u5229\u7528\u53ef\u80fd\u306a\u5bfe\u5fdc\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ee3\u66ff\u306e\u7b49\u53f7\u6f14\u7b97\u5b50\u3067\u3042\u308b\u300c!=\u300d\u306f\u3001\u540c\u69d8\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u304c\u3001\u4e8c\u3064\u306e\u5909\u6570\u307e\u305f\u306f\u5024\u304c\u540c\u3058\u3067\u306f\u306a\u3044\uff08\u307e\u305f\u306f\u7b49\u3057\u304f\u306a\u3044\uff09\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u7df4\u7fd2\u3068\u3057\u3066\u3001\u4ee5\u524d\u306e\u4f8b\u306e\u3044\u304f\u3064\u304b\u3067\u300c==\u300d\u3092\u300c!=\u300d\u306b\u7f6e\u304d\u63db\u3048\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>&lt;\u3068&lt;=\u3001&gt;\u3068=&gt;\u306f\u3001\u540c\u3058\u304f\u6570\u5b66\u304b\u3089\u6d3e\u751f\u3057\u305f\u6b21\u306e\u56db\u3064\u306e\u95a2\u4fc2\u6f14\u7b97\u5b50\u3067\u3059\u3002<\/p>\n<p>\u6b21\u306f\u3001\u5927\u306a\u308a\u6f14\u7b97\u5b50\u3092\u4f7f\u3063\u305f\u4f8b\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">System.out.println<span class=\"token punctuation\">(<\/span><span class=\"token number\">4<\/span> <mark><span class=\"token operator\">&gt;<\/span><\/mark> <span class=\"token number\">5<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3092jshell\u3067\u5b9f\u884c\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>false<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306f\u307e\u305a\u30014\u304c5\u3088\u308a\u5927\u304d\u3044\u304b\u3069\u3046\u304b\u3092\u6bd4\u8f03\u3057\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u305d\u3046\u3067\u306f\u306a\u3044\u305f\u3081\u3001\u5f0f\u306ffalse\u3068\u8a55\u4fa1\u3055\u308c\u307e\u3059\u3002\u6bd4\u8f03\u7d50\u679c\u306efalse\u306f\u3001println()\u30e1\u30bd\u30c3\u30c9\u306b\u3088\u3063\u3066\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306e\u95a2\u4fc2\u6f14\u7b97\u5b50\u306finstanceof\u3067\u3059\u3002\u3053\u306e\u6f14\u7b97\u5b50\u306f\u3001\u5909\u6570\u304c\u7279\u5b9a\u306e\u30af\u30e9\u30b9\uff08\u307e\u305f\u306f\u30b5\u30d6\u30af\u30e9\u30b9\uff09\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067\u3042\u308b\u304b\u3001\u3042\u308b\u3044\u306f\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u5b9f\u88c5\u3067\u3042\u308b\u304b\u3092\u8a55\u4fa1\u3057\u307e\u3059\u3002Java\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u300cJava\u306b\u304a\u3051\u308b\u30c7\u30fc\u30bf\u578b\u306e\u7406\u89e3\u300d\u3067\u8aac\u660e\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u306b\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306f\u8981\u4ef6\u306e\u30b0\u30eb\u30fc\u30d7\u3092\u6301\u3064\u62bd\u8c61\u7684\u306a\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u4f8b\u3092\u4f7f\u7528\u3057\u3066\u3001instanceof\u306e\u52d5\u4f5c\u3092\u8abf\u3079\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">String greeting <span class=\"token operator\">=<\/span> <span class=\"token string\">&#8220;hello&#8221;<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">System.out.println<span class=\"token punctuation\">(<\/span>greeting <mark>instanceof<\/mark> String<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u307e\u305a\u3001greeting\u3068\u3044\u3046\u540d\u524d\u306e\u5909\u6570\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u6b21\u306b\u3001\u62ec\u5f27\u5185\u3067greeting\u304cString\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u8a55\u4fa1\u3057\u307e\u3059\u3002<\/p>\n<p>jshell\u306b\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u308b\u3068\u3001\u6b21\u306e\u51fa\u529b\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>greeting ==&gt; &#8220;hello&#8221; true<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3042\u3044\u3055\u3064\u306fString\u306e\u4e00\u7a2e\u3067\u3042\u308b\u305f\u3081\u3001\u5f0f\u306f\u771f\u3068\u8a55\u4fa1\u3055\u308c\u3001println()\u306b\u3088\u3063\u3066\u753b\u9762\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>\u8ad6\u7406\u6f14\u7b97\u5b50 (\u308d\u3093\u308a\u3048\u3093\u3056\u3093\u3057)<\/h3>\n<p>\u8ad6\u7406\u6f14\u7b97\u5b50\u306f\u3001\u8ad6\u7406\u7a4d\uff08&amp;\uff09\u3001\u8ad6\u7406\u548c\uff08|\uff09\u3001\u6392\u4ed6\u7684\u8ad6\u7406\u548c\uff08^\uff09\u3067\u3059\u3002\u3053\u308c\u3089\u306f\u3059\u3079\u3066\uff12\u3064\u306e\u5024\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a55\u4fa1\u3057\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>Logical AND is true when both values are true.<\/li>\n<li>Logical OR is true when at least one of the values is true.<\/li>\n<li>Exclusive OR is true if one value is true and the other is false.<\/li>\n<\/ul>\n<p>\u4e0a\u8a18\u306e\u6761\u4ef6\u306b\u5f53\u3066\u306f\u307e\u3089\u306a\u3044\u5834\u5408\u3001\u8ad6\u7406\u6f14\u7b97\u5b50\u306f\u507d\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u300c\u8ad6\u7406\u7684\u306aAND\uff08\uff06\uff09\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u4f8b\u3092jshell\u306b\u8cbc\u308a\u4ed8\u3051\u3066\u304f\u3060\u3055\u3044\u3002\u300d<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">boolean isJavaFun <span class=\"token operator\">=<\/span> <span class=\"token boolean\">true<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">boolean isJavaPowerful <span class=\"token operator\">=<\/span> <span class=\"token boolean\">true<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">System.out.println<span class=\"token punctuation\">(<\/span>isJavaFun <mark><span class=\"token operator\">&amp;<\/span><\/mark> isJavaPowerful<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u521d\u306e2\u884c\u306f\u3001isJavaFun\u3068isJavaPowerful\u3068\u3044\u3046\u30d6\u30fc\u30eb\u5909\u6570\u3092\u4e21\u65b9\u3068\u3082true\u306b\u5b9a\u7fa9\u3057\u307e\u3059\u30023\u884c\u76ee\u3067\u306f\u3001\u62ec\u5f27\u5185\u3067isJavaFun\u3068isJavaPowerful\u306e\u8ad6\u7406AND\u6f14\u7b97\u3092\u884c\u3044\u3001\u305d\u306e\u7d50\u679c\u304cprintln()\u306b\u3088\u3063\u3066\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3092jshell\u306b\u8cbc\u308a\u4ed8\u3051\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>isJavaFun ==&gt; true isJavaPowerful ==&gt; true true<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4e21\u65b9\u306e\u5909\u6570\u304c true \u306b\u8a2d\u5b9a\u3055\u308c\u3001\u8ad6\u7406\u7a4d\u306e\u64cd\u4f5c\u306e\u7d50\u679c\u3068\u3057\u3066\u6700\u7d42\u7684\u306b true \u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u30b9\u30ad\u30eb\u3092\u5411\u4e0a\u3055\u305b\u308b\u305f\u3081\u306b\u3001\u524d\u306e\u30b3\u30fc\u30c9\u4f8b\u3092\u3044\u304f\u3064\u304b\u306e\u30d0\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u3067\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u5909\u6570\u306e\u5024\u3092true\u3068false\u306e\u9593\u3067\u5207\u308a\u66ff\u3048\u308b\u8a66\u307f\u3084\u3001\u8ad6\u7406\u6f14\u7b97\u5b50\u3092\u8ad6\u7406\u548c(|)\u3084\u6392\u4ed6\u7684\u8ad6\u7406\u548c(^)\u306b\u5909\u66f4\u3059\u308b\u8a66\u307f\u306a\u3069\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u8ad6\u7406\u6f14\u7b97\u5b50\u306e\u62e1\u5f35\u7248\u306b\u306f\u3001\u3044\u308f\u3086\u308b\u30b7\u30e7\u30fc\u30c8\u30b5\u30fc\u30ad\u30c3\u30c8\u8ad6\u7406\u6f14\u7b97\u5b50\u304c\u3042\u308a\u307e\u3059\uff1a\u30b7\u30e7\u30fc\u30c8\u30b5\u30fc\u30ad\u30c3\u30c8AND\uff08&amp;&amp;\uff09\u304a\u3088\u3073\u30b7\u30e7\u30fc\u30c8\u30b5\u30fc\u30ad\u30c3\u30c8OR\uff08||\uff09\u3067\u3059\u3002\u3053\u308c\u3089\u306f\u901a\u5e38\u306e\u8ad6\u7406AND\u304a\u3088\u3073OR\u6f14\u7b97\u5b50\u3068\u985e\u4f3c\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u91cd\u8981\u306a\u9055\u3044\u304c\u3042\u308a\u307e\u3059\uff1a\u6700\u521d\u306e\u6f14\u7b97\u5b50\u306e\u8a55\u4fa1\u304c\u64cd\u4f5c\u306b\u5341\u5206\u306a\u5834\u5408\u30012\u756a\u76ee\u306e\u6f14\u7b97\u5b50\u306f\u8a55\u4fa1\u3055\u308c\u307e\u305b\u3093\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u30b7\u30e7\u30fc\u30c8\u30b5\u30fc\u30ad\u30c3\u30c8AND\u304c\u771f\u3067\u3042\u308b\u305f\u3081\u306b\u306f\u3001\u305d\u308c\u3092\u53d6\u308a\u56f2\u3080\u4e21\u5074\u304c\u771f\u3067\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u3001\u5de6\u5074\u304c\u507d\u3067\u3042\u308c\u3070\u3001\u53f3\u5074\u306f\u8a55\u4fa1\u3055\u308c\u307e\u305b\u3093\u3002\u540c\u69d8\u306b\u3001\u30b7\u30e7\u30fc\u30c8\u30b5\u30fc\u30ad\u30c3\u30c8OR\u3067\u3082\u3001\u5de6\u5074\u304c\u507d\u3067\u3042\u308c\u3070\u3001\u53f3\u5074\u306f\u8a55\u4fa1\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u3053\u306b\u77ed\u7d61\u8ad6\u7406\u6f14\u7b97\u5b50OR\u3092\u4f7f\u7528\u3057\u305f\u4f8b\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">boolean isJavaFun <span class=\"token operator\">=<\/span> <span class=\"token boolean\">true<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">Boolean isNullFun <span class=\"token operator\">=<\/span> null<span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">System.out.println<span class=\"token punctuation\">(<\/span>isJavaFun <mark><span class=\"token operator\">||<\/span><\/mark> isNullFun<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u521d\u306b\u3001\u5909\u6570isJavaFun\u306btrue\u3068\u3044\u3046\u5024\u3092\u5272\u308a\u5f53\u3066\u307e\u3059\u3002\u4ee5\u524d\u306e\u4f8b\u3068\u306e\u6574\u5408\u6027\u3092\u4fdd\u3064\u305f\u3081\u3001\u3053\u306e\u5909\u6570\u306fboolean\u3068\u3044\u3046\u57fa\u672c\u30c7\u30fc\u30bf\u578b\u3067\u3059\u3002\u305f\u3060\u3057\u3001\u6b21\u306e\u5909\u6570\u3067\u3042\u308bisNullFun\u306b\u306f\u3001null\u3092\u5272\u308a\u5f53\u3066\u308b\u305f\u3081\u306bBoolean\u53c2\u7167\u578b\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u306e\u4f8b\u3067\u306f\u3001null\u3092\u53c2\u7167\u3059\u308b\u5909\u6570\u304c\u5fc5\u8981\u306a\u306e\u3067\u3001Java\u306e\u30c7\u30fc\u30bf\u578b\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u8aac\u660e\u3057\u305f\u3088\u3046\u306b\u3001\u57fa\u672c\u30c7\u30fc\u30bf\u578b\u306fnull\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u305a\u3001\u305d\u308c\u304c\u53c2\u7167\u578b\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u7406\u7531\u3067\u3059\u3002<\/p>\n<p>\u62ec\u5f27\u5185\u3067\u77ed\u7d61\u8a55\u4fa1\u306e&#8221;\u307e\u305f\u306f&#8221;\u304c\u767a\u751f\u3059\u308b\u3068\u3001\u5de6\u5074\u304ctrue\u3068\u306a\u308b\u305f\u3081isNullFun\u306f\u7121\u8996\u3055\u308c\u3001\u3053\u308c\u3060\u3051\u3067\u5f0f\u5168\u4f53\u304ctrue\u3068\u306a\u308a\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001jshell\u3067\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u51fa\u529b\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>isJavaFun ==&gt; true isNullFun ==&gt; null true<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u521d\u306e\u884c\u30682\u884c\u76ee\u306f\u3001\u5909\u6570\u304ctrue\u3068null\u306b\u5272\u308a\u5f53\u3066\u3089\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3059\u30023\u884c\u76ee\u3067\u306f\u3001\u30b7\u30e7\u30fc\u30c8\u30b5\u30fc\u30ad\u30c3\u30c8\u306eOR\u6f14\u7b97\u304ctrue\u3092\u8fd4\u3057\u305f\u305f\u3081\u3001true\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u4f8b\u306f\u3001isNullFun\u304c\u8a55\u4fa1\u3055\u308c\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3068\u3001\u30b7\u30e7\u30fc\u30c8\u30b5\u30fc\u30ad\u30c3\u30c8\u6f14\u7b97\u5b50\u306e\u52d5\u4f5c\u3092\u793a\u3059\u305f\u3081\u306b\u3001null\u3092\u7279\u5b9a\u306e\u76ee\u7684\u3067\u9078\u3070\u308c\u307e\u3057\u305f\u3002isNullFun\u304c\u8a55\u4fa1\u3055\u308c\u308b\u306e\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u30b7\u30e7\u30fc\u30c8\u30b5\u30fc\u30ad\u30c3\u30c8OR\u3092\u901a\u5e38\u306eOR\u306b\u5909\u66f4\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">boolean isJavaFun <span class=\"token operator\">=<\/span> <span class=\"token boolean\">true<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">Boolean isNullFun <span class=\"token operator\">=<\/span> null<span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">System.out.println<span class=\"token punctuation\">(<\/span>isJavaFun <mark><span class=\"token operator\">|<\/span><\/mark> isNullFun<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u901a\u5e38\u306e\u8ad6\u7406\u548c\uff08OR\uff09\u3067\u306f\u3001\u5f0f\u306e\u4e21\u5074\u3092\u8a55\u4fa1\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3092jshell\u3067\u5b9f\u884c\u3059\u308b\u3068\u3001\u6b21\u306e\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>isJavaFun ==&gt; true\r\nisNullFun ==&gt; null\r\n|  Exception java.lang.NullPointerException\r\n|        at (#3:1)\r\n<\/code><\/pre>\n<p>\u8ad6\u7406OR\u304cnull\u3092\u8a55\u4fa1\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001java.lang.NullPointerException\u304c\u767a\u751f\u3057\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u30b7\u30e7\u30fc\u30c8\u30b5\u30fc\u30ad\u30c3\u30c8\u6f14\u7b97\u5b50\u304c\u512a\u5148\u3055\u308c\u3001\u901a\u5e38\u306e\u8ad6\u7406\u6f14\u7b97\u5b50\u306e\u4ee3\u308f\u308a\u306b\u307b\u3068\u3093\u3069\u5e38\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u7df4\u7fd2\u306e\u4e00\u74b0\u3068\u3057\u3066\u3001\u6700\u3082\u4eba\u6c17\u3067\u4fbf\u5229\u306a\u77ed\u7d61\u8ad6\u7406\u6f14\u7b97\u5b50 &amp;&amp; \u3068 || \u3092\u4f7f\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u57fa\u672c\u7684\u306a\u7b97\u8853\u304b\u3089\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30ad\u30e3\u30b9\u30c8\u3084\u7b49\u4fa1\u6027\u306e\u6bd4\u8f03\u307e\u3067\u3001\u3055\u307e\u3056\u307e\u306a\u4f8b\u3092\u7528\u3044\u3066\u30d0\u30a4\u30ca\u30ea\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u3002\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u30013\u3064\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3092\u4f7f\u3063\u3066\u4f5c\u696d\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<h2>\u4e09\u9805\u6f14\u7b97\u5b50<\/h2>\n<p>\u524d\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u30011\u3064\u307e\u305f\u306f2\u3064\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u305f\u6f14\u7b97\u5b50\u306e\u4f7f\u7528\u65b9\u6cd5\u3092\u7df4\u7fd2\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u6700\u5f8c\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u4e09\u9805\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u4e09\u3064\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u306e\u307f\u3092\u6271\u3046\u6f14\u7b97\u5b50\u3067\u3059\u3002\u69cb\u6587\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff1a\u6700\u521d\u306e\u30aa\u30da\u30e9\u30f3\u30c9 ? \u7b2c\u4e8c\u306e\u30aa\u30da\u30e9\u30f3\u30c9 : \u7b2c\u4e09\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3002\u6700\u521d\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u306f\u30d6\u30fc\u30eb\u5024\u3067\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u3082\u3057\u6700\u521d\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u304ctrue\u3067\u3042\u308c\u3070\u3001\u5f0f\u304b\u3089\u7b2c\u4e8c\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002\u3082\u3057\u6700\u521d\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u304cfalse\u3067\u3042\u308c\u3070\u3001\u7b2c\u4e09\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4e09\u9805\u6f14\u7b97\u5b50\u306f\u4eba\u6c17\u304c\u3042\u308a\u3001\u983b\u7e41\u306b\u4f7f\u7528\u3055\u308c\u308b\u3002\u306a\u305c\u306a\u3089\u3070\u3001\u6761\u4ef6\u5206\u5c90\u306a\u3069\u306e\u8907\u96d1\u306a\u6587\u3092\u66f8\u304f\u5fc5\u8981\u304c\u306a\u304f\u3001\u7d50\u679c\u3092\u4e00\u6642\u5909\u6570\u306b\u683c\u7d0d\u3059\u308b\u624b\u9593\u3082\u7701\u3051\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u4f8b\u3067\u4e09\u9805\u6f14\u7b97\u5b50\u3092\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044:<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">boolean isJavaFun <span class=\"token operator\">=<\/span> <span class=\"token boolean\">true<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">String shouldILearnJava <span class=\"token operator\">=<\/span> <mark>isJavaFun ? <span class=\"token string\">&#8220;yes&#8221;<\/span> <span class=\"token builtin class-name\">:<\/span> <span class=\"token string\">&#8220;no&#8221;<\/span><span class=\"token punctuation\">;<\/span><\/mark><\/li>\n<li data-prefix=\"jshell&gt;\">System.out.println<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#8220;Should I learn Java: &#8220;<\/span> + shouldILearnJava<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>isJavaFun\u304ctrue\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u304a\u308a\u3001\u5909\u6570shouldILearnJava\u306f\u305d\u308c\u306b\u57fa\u3065\u3044\u3066\u4e09\u9805\u6f14\u7b97\u5b50\u3067\u6c7a\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u6700\u521d\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3067\u3042\u308bisJavaFun\u304ctrue\u3067\u3042\u308b\u305f\u3081\u30012\u756a\u76ee\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3067\u3042\u308b\u6587\u5b57\u5217&#8221;yes&#8221;\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u30013\u884c\u76ee\u3067\u5909\u6570shouldILearnJava\u3092\u51fa\u529b\u3057\u3001\u3053\u306e\u6642\u70b9\u3067\u306f&#8221;yes&#8221;\u3067\u3042\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Should I learn Java: yes<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u8ffd\u52a0\u306e\u7df4\u7fd2\u3068\u3057\u3066\u3001isJavaFun\u306e\u524d\u306bNOT\u6f14\u7b97\u5b50\u3092\u4f7f\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">boolean isJavaFun <span class=\"token operator\">=<\/span> <span class=\"token boolean\">true<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">String shouldILearnJava <span class=\"token operator\">=<\/span> <mark><span class=\"token operator\">!<\/span><\/mark>isJavaFun ? <span class=\"token string\">&#8220;yes&#8221;<\/span> <span class=\"token builtin class-name\">:<\/span> <span class=\"token string\">&#8220;no&#8221;<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<li data-prefix=\"jshell&gt;\">System.out.println<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#8220;Should I learn java: &#8220;<\/span> + shouldILearnJava<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>isJavaFun\u306e\u5024\u3092\u53cd\u8ee2\u3055\u305b\u308b\u3053\u3068\u3067\u3001\u305d\u308c\u3092true\u304b\u3089false\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u305d\u306e\u7d50\u679c\u3001\u4e09\u9805\u6f14\u7b97\u5f0f\u306f\u6700\u5f8c\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3067\u3042\u308b\u300cno\u300d\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u6587\u3092\u65e5\u672c\u8a9e\u3067\u81ea\u7136\u306b\u8a00\u3044\u63db\u3048\u307e\u3059\u3002\u9078\u629e\u80a2\u306f1\u3064\u3060\u3051\u3067\u3059\u3002<br \/>\nNOT\u6f14\u7b97\u5b50\u306a\u3069\u306e\u8ffd\u52a0\u306e\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u3001\u4e09\u9805\u5f0f\u306f\u6df7\u4e71\u3092\u62db\u304f\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u305d\u308c\u3089\u306f\u5197\u9577\u306a\u30b3\u30fc\u30c9\u3092\u7701\u304f\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081\u3001\u4eba\u6c17\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>\u6f14\u7b97\u5b50\u306e\u512a\u5148\u9806\u4f4d<\/h2>\n<p>\u91cd\u8981\u306a\u6f14\u7b97\u5b50\u3092\u77e5\u308b\u3068\u3001\u305d\u308c\u3089\u3092\u4f7f\u7528\u3057\u305f\u308a\u3001\u7d44\u307f\u5408\u308f\u305b\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u305d\u308c\u3089\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u524d\u306b\u3001\u6f14\u7b97\u5b50\u306e\u512a\u5148\u9806\u4f4d\u306e\u30eb\u30fc\u30eb\u3092\u77e5\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30aa\u30da\u30ec\u30fc\u30bf\u306e\u512a\u5148\u9806\u4f4d\u306f\u3001\u6f14\u7b97\u5b50\u304c\u3069\u306e\u9806\u756a\u3067\u8a55\u4fa1\u3055\u308c\u308b\u304b\u3092\u6c7a\u5b9a\u3057\u307e\u3059\u3002\u8907\u6570\u306e\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u4e00\u822c\u7684\u3067\u3059\u306e\u3067\u3001\u30aa\u30da\u30ec\u30fc\u30bf\u306e\u512a\u5148\u9806\u4f4d\u3092\u7406\u89e3\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u30eb\u30fc\u30eb\u306f\u5e38\u306b\u76f4\u611f\u7684\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u5b9f\u969b\u306b\u306f\u3044\u304f\u3064\u304b\u306e\u4e3b\u8981\u306a\u30eb\u30fc\u30eb\u3060\u3051\u3092\u77e5\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u5341\u5206\u3067\u3059\u3002<\/p>\n<p>\u6f14\u7b97\u5b50\u306e\u512a\u5148\u9806\u4f4d\u3092\u7406\u89e3\u3059\u308b\u3053\u3068\u306f\u3001\u8fd1\u4ee3\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u4e8b\u5b9f\u4e0a\u306e\u6a19\u6e96\u3067\u3042\u308b\u30af\u30ea\u30fc\u30f3\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002\u30af\u30ea\u30fc\u30f3\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3068\u3044\u3046\u3053\u3068\u306f\u3001\u7406\u89e3\u3057\u3084\u3059\u304f\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3057\u3084\u3059\u3044\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u6f14\u7b97\u5b50\u306b\u95a2\u3057\u3066\u306f\u3001\u30af\u30ea\u30fc\u30f3\u306a\u30b3\u30fc\u30c9\u306e\u30d1\u30e9\u30c0\u30a4\u30e0\u306f\u3067\u304d\u308b\u3060\u3051\u5c11\u306a\u3044\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3057\u3001\u6f14\u7b97\u5b50\u306e\u5165\u308c\u5b50\u3084\u7d44\u307f\u5408\u308f\u305b\u3067\u306f\u306a\u304f\u3001\u5225\u3005\u306e\u6587\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306b\u7ffb\u8a33\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u6587\u306f\u907f\u3051\u308b\u3079\u304d\u3067\u3059\u3002\u306a\u305c\u306a\u3089\u3001\u3053\u308c\u3089\u306f\u3042\u307e\u308a\u306b\u3082\u6df7\u4e71\u3092\u5f15\u304d\u8d77\u3053\u3059\u304b\u3089\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">boolean isThisCleanCode <span class=\"token operator\">=<\/span> <span class=\"token operator\">!<\/span>true <span class=\"token operator\">||<\/span> <span class=\"token boolean\">false<\/span> <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token boolean\">true<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u904b\u7528\u8005\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3057\u3066\u3082\u3001\u6700\u7d42\u7d50\u679c\uff08isThisCleanCode\u304cfalse\uff09\u3092\u4e88\u6e2c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u4ee5\u4e0b\u306b\u306f\u3001\u6700\u3082\u91cd\u8981\u3067\u3088\u304f\u4f7f\u308f\u308c\u308b\u512a\u5148\u30eb\u30fc\u30eb\u306e\u4e00\u90e8\u304c\u3042\u308a\u307e\u3059\u3002\u6700\u512a\u5148\u306e\u30eb\u30fc\u30eb\u304b\u3089\u59cb\u3081\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>Pre and post increment and decrement operators: They have the highest precedence and take effect before any other operators.<\/li>\n<li>Arithmetic rules from math: All rules valid in math are also valid in Java. For example, division \/ has higher precedence than addition +. Parentheses override the precedence; that is, you can group operations with parentheses and they will be evaluated with priority.<\/li>\n<li>Equality and relational operators: Since they evaluate equality or relation, they also work with the final values of their operands, and thus all other operations have to be completed.<\/li>\n<li>Logical OR and AND operators (including short-circuit): Similar to the ternary operator, they all need the final values of their operands, hence their low precedence.<\/li>\n<li>Ternary operator: The ternary operator needs the final value of the first operand. For this to happen, all other operations must have been completed. That\u2019s why the ternary operator has such low precedence.<\/li>\n<li>Assignment operators: They are evaluated last so that all other operations have been completed and the final result can be assigned to the operand on the left. As an example, think of every variable that you have assigned with the equals sign so far.<\/li>\n<\/ul>\n<p>\u4eca\u5ea6\u306f\u3001\u6f14\u7b97\u5b50\u306e\u512a\u5148\u9806\u4f4d\u3092\u8abf\u3079\u308b\u305f\u3081\u306b\u6570\u5b66\u306e\u554f\u984c\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">int x <span class=\"token operator\">=<\/span> <span class=\"token number\">1<\/span> + <span class=\"token number\">10<\/span> \/ <span class=\"token number\">2<\/span><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3092jshell\u306b\u8cbc\u308a\u4ed8\u3051\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u51fa\u529b\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>x ==&gt; 6<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u51fa\u529b\u306b\u3088\u308b\u3068\u3001x\u306e\u5024\u306f6\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u4ee5\u4e0b\u306e\u64cd\u4f5c\u304c\u512a\u5148\u5ea6\u3092\u4e0b\u3052\u3066\u5b9f\u884c\u3055\u308c\u305f\u305f\u3081\u3067\u3059\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u6700\u521d\u306b10 \u00f7 2\u304c\u8a55\u4fa1\u3055\u308c\u307e\u3059\u3002\u305d\u306e\u7d50\u679c\u306f5\u3067\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u6700\u521d\u306e\u8a08\u7b97\u7d50\u679c\uff085\uff09\u306b1\u304c\u52a0\u3048\u3089\u308c\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u7d50\u679c\u306f6\u3068\u306a\u308a\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\u4ee3\u5165\u6f14\u7b97\u5b50\u304c\u767b\u5834\u3057\u3001\u6700\u7d42\u7d50\u679c\uff086\uff09\u304c\u5909\u6570x\u306b\u4ee3\u5165\u3055\u308c\u307e\u3059\u3002<\/ol>\n<p>\u6570\u5f0f\u306f\u6bd4\u8f03\u7684\u7c21\u5358\u3067\u3059\u304c\u3001\u5e38\u306b\u512a\u5148\u9806\u4f4d\u304c\u308f\u304b\u308a\u3084\u3059\u304f\u306a\u308b\u3088\u3046\u3001\u3088\u308a\u8a73\u7d30\u306b\u62ec\u5f27\u3092\u4f7f\u7528\u3057\u3066\u66f8\u304d\u76f4\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u3092\u8003\u3048\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"jshell&gt;\">int x <span class=\"token operator\">=<\/span> <span class=\"token number\">1<\/span> + <mark><span class=\"token punctuation\">(<\/span><\/mark><span class=\"token number\">10<\/span> \/ <span class=\"token number\">2<\/span><mark><span class=\"token punctuation\">)<\/span><\/mark><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4e0a\u8a18\u3092jshell\u306b\u8cbc\u308a\u4ed8\u3051\u308b\u3068\u3001\u4ee5\u524d\u3068\u540c\u3058\u7d50\u679c\u304c\u5370\u5237\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>x ==&gt; 6<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u5f8c\u306e\u4f8b\u3067\u306f\u300110 \/ 2 \u306e\u5468\u308a\u306b\u62ec\u5f27\u3092\u4f7f\u3063\u3066\u3082\u6f14\u7b97\u306e\u512a\u5148\u9806\u4f4d\u306f\u5909\u308f\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u305d\u306e\u4ee3\u308f\u308a\u3001\u62ec\u5f27\u306e\u76ee\u7684\u306f\u3001\u5185\u90e8\u306e\u6f14\u7b97\u306e\u512a\u5148\u9806\u4f4d\u3092\u660e\u78ba\u306b\u3059\u308b\u3053\u3068\u3060\u3051\u3067\u3057\u305f\u3002\u3053\u306e\u3088\u3046\u306b\u62ec\u5f27\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u30b3\u30fc\u30c9\u3092\u3088\u308a\u6e05\u6f54\u3067\u7406\u89e3\u3057\u3084\u3059\u304f\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u7279\u306b\u6f14\u7b97\u304c\u8907\u96d1\u306a\u5834\u5408\u306b\u306f\u3001\u3053\u308c\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n<p>\u512a\u5148\u898f\u5247\u306f\u8208\u5473\u6df1\u304f\u3001\u6642\u9593\u3092\u304b\u3051\u3066\u5b66\u3076\u3053\u3068\u306f\u826f\u3044\u8003\u3048\u3067\u3059\u3002\u30af\u30ea\u30fc\u30f3\u30b3\u30fc\u30c9\u306e\u30d1\u30e9\u30c0\u30a4\u30e0\u3092\u5ff5\u982d\u306b\u7f6e\u304d\u3001\u4e0d\u5fc5\u8981\u306a\u30cd\u30b9\u30c8\u3084\u6f14\u7b97\u5b50\u306e\u7d44\u307f\u5408\u308f\u305b\u306f\u30b3\u30fc\u30c9\u306e\u5f31\u70b9\u3068\u898b\u306a\u3055\u308c\u308b\u3053\u3068\u3092\u8003\u616e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Java\u306e\u4e3b\u8981\u306a\u6f14\u7b97\u5b50\u306b\u3064\u3044\u3066\u5b66\u3073\u307e\u3057\u305f\u3002\u3044\u304f\u3064\u304b\u306e\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u30b9\u30cb\u30da\u30c3\u30c8\u3092\u66f8\u304d\u3001\u6f14\u7b97\u5b50\u306b\u95a2\u9023\u3059\u308b\u6700\u3082\u4fbf\u5229\u3067\u8208\u5473\u6df1\u3044\u30b7\u30ca\u30ea\u30aa\u306e\u4e00\u90e8\u3092\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002\u307e\u305f\u3001\u30af\u30ea\u30fc\u30f3\u30b3\u30fc\u30c9\u306b\u3064\u3044\u3066\u5b66\u3073\u3001\u6f14\u7b97\u5b50\u304c\u4e0d\u5fc5\u8981\u306b\u904e\u5ea6\u306b\u4f7f\u7528\u3055\u308c\u308b\u3079\u304d\u3067\u306f\u306a\u3044\u3068\u3044\u3046\u4e8b\u5b9f\u3082\u5b66\u3073\u307e\u3057\u305f\u3002<\/p>\n<p>Java\u306b\u3064\u3044\u3066\u3082\u3063\u3068\u8a73\u3057\u304f\u77e5\u308a\u305f\u3044\u65b9\u306f\u3001\u5f53\u793e\u306e\u300cJava\u3067\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u65b9\u6cd5\u30b7\u30ea\u30fc\u30ba\u300d\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8457\u8005\u306f\u3001\u300c\u66f8\u3044\u3066\u5bc4\u4ed8\u300d\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4e00\u74b0\u3068\u3057\u3066\u3001\u30d5\u30ea\u30fc\u304b\u3064\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u57fa\u91d1\u306b\u5bc4\u4ed8\u3092\u3059\u308b\u3053\u3068\u3092\u9078\u3073\u307e\u3057\u305f\u3002 \u4ee5\u4e0b\u306f\u65e5\u672c\u8a9e\u3067\u306e\u81ea\u7136\u306a\u8a00\u3044\u56de\u3057\u306e\u4e00\u3064\u3067\u3059\u3002 \u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3 \u6f14\u7b97\u5b50\u306f\u3001\u3088\u304f\u77e5\u3089\u308c\u305f\u7b97\u8853\u6f14\u7b97\u5b50\u3067\u3042\u308b\u5f15\u304d\u7b97\uff08-\uff09 [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-180","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-26","tag-61"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Java\u3067\u30aa\u30da\u30ec\u30fc\u30bf\u3092\u4f7f\u3046\u65b9\u6cd5 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Java\u3067\u30aa\u30da\u30ec\u30fc\u30bf\u3092\u4f7f\u3046\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/java\u3067\u30aa\u30da\u30ec\u30fc\u30bf\u3092\u4f7f\u3046\u65b9\u6cd5\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java\u3067\u30aa\u30da\u30ec\u30fc\u30bf\u3092\u4f7f\u3046\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"Java\u3067\u30aa\u30da\u30ec\u30fc\u30bf\u3092\u4f7f\u3046\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/java\u3067\u30aa\u30da\u30ec\u30fc\u30bf\u3092\u4f7f\u3046\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-05T11:32:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T12:25:53+00:00\" \/>\n<meta name=\"author\" content=\"\u512a\u6597, \u671d\u967d\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u512a\u6597, \u671d\u967d\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"45\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%a7%e3%82%aa%e3%83%9a%e3%83%ac%e3%83%bc%e3%82%bf%e3%82%92%e4%bd%bf%e3%81%86%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%a7%e3%82%aa%e3%83%9a%e3%83%ac%e3%83%bc%e3%82%bf%e3%82%92%e4%bd%bf%e3%81%86%e6%96%b9%e6%b3%95\/\",\"name\":\"Java\u3067\u30aa\u30da\u30ec\u30fc\u30bf\u3092\u4f7f\u3046\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2022-11-05T11:32:39+00:00\",\"dateModified\":\"2025-07-31T12:25:53+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cab7534c71201607a41f395de14d7d28\"},\"description\":\"Java\u3067\u30aa\u30da\u30ec\u30fc\u30bf\u3092\u4f7f\u3046\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%a7%e3%82%aa%e3%83%9a%e3%83%ac%e3%83%bc%e3%82%bf%e3%82%92%e4%bd%bf%e3%81%86%e6%96%b9%e6%b3%95\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%a7%e3%82%aa%e3%83%9a%e3%83%ac%e3%83%bc%e3%82%bf%e3%82%92%e4%bd%bf%e3%81%86%e6%96%b9%e6%b3%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%a7%e3%82%aa%e3%83%9a%e3%83%ac%e3%83%bc%e3%82%bf%e3%82%92%e4%bd%bf%e3%81%86%e6%96%b9%e6%b3%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\u3067\u30aa\u30da\u30ec\u30fc\u30bf\u3092\u4f7f\u3046\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cab7534c71201607a41f395de14d7d28\",\"name\":\"\u512a\u6597, \u671d\u967d\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/56ecb1d20648a2ff67709eeaa7b6eddeb4d52aca0d46febc7f12bbef507187d0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/56ecb1d20648a2ff67709eeaa7b6eddeb4d52aca0d46febc7f12bbef507187d0?s=96&d=mm&r=g\",\"caption\":\"\u512a\u6597, \u671d\u967d\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/yutoasahi\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%a7%e3%82%aa%e3%83%9a%e3%83%ac%e3%83%bc%e3%82%bf%e3%82%92%e4%bd%bf%e3%81%86%e6%96%b9%e6%b3%95\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Java\u3067\u30aa\u30da\u30ec\u30fc\u30bf\u3092\u4f7f\u3046\u65b9\u6cd5 - Blog - Silicon Cloud","description":"Java\u3067\u30aa\u30da\u30ec\u30fc\u30bf\u3092\u4f7f\u3046\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/java\u3067\u30aa\u30da\u30ec\u30fc\u30bf\u3092\u4f7f\u3046\u65b9\u6cd5\/","og_locale":"ja_JP","og_type":"article","og_title":"Java\u3067\u30aa\u30da\u30ec\u30fc\u30bf\u3092\u4f7f\u3046\u65b9\u6cd5","og_description":"Java\u3067\u30aa\u30da\u30ec\u30fc\u30bf\u3092\u4f7f\u3046\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/java\u3067\u30aa\u30da\u30ec\u30fc\u30bf\u3092\u4f7f\u3046\u65b9\u6cd5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-11-05T11:32:39+00:00","article_modified_time":"2025-07-31T12:25:53+00:00","author":"\u512a\u6597, \u671d\u967d","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u512a\u6597, \u671d\u967d","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"45\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%a7%e3%82%aa%e3%83%9a%e3%83%ac%e3%83%bc%e3%82%bf%e3%82%92%e4%bd%bf%e3%81%86%e6%96%b9%e6%b3%95\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%a7%e3%82%aa%e3%83%9a%e3%83%ac%e3%83%bc%e3%82%bf%e3%82%92%e4%bd%bf%e3%81%86%e6%96%b9%e6%b3%95\/","name":"Java\u3067\u30aa\u30da\u30ec\u30fc\u30bf\u3092\u4f7f\u3046\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2022-11-05T11:32:39+00:00","dateModified":"2025-07-31T12:25:53+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cab7534c71201607a41f395de14d7d28"},"description":"Java\u3067\u30aa\u30da\u30ec\u30fc\u30bf\u3092\u4f7f\u3046\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%a7%e3%82%aa%e3%83%9a%e3%83%ac%e3%83%bc%e3%82%bf%e3%82%92%e4%bd%bf%e3%81%86%e6%96%b9%e6%b3%95\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%a7%e3%82%aa%e3%83%9a%e3%83%ac%e3%83%bc%e3%82%bf%e3%82%92%e4%bd%bf%e3%81%86%e6%96%b9%e6%b3%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%a7%e3%82%aa%e3%83%9a%e3%83%ac%e3%83%bc%e3%82%bf%e3%82%92%e4%bd%bf%e3%81%86%e6%96%b9%e6%b3%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Java\u3067\u30aa\u30da\u30ec\u30fc\u30bf\u3092\u4f7f\u3046\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cab7534c71201607a41f395de14d7d28","name":"\u512a\u6597, \u671d\u967d","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/56ecb1d20648a2ff67709eeaa7b6eddeb4d52aca0d46febc7f12bbef507187d0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/56ecb1d20648a2ff67709eeaa7b6eddeb4d52aca0d46febc7f12bbef507187d0?s=96&d=mm&r=g","caption":"\u512a\u6597, \u671d\u967d"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/yutoasahi\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%a7%e3%82%aa%e3%83%9a%e3%83%ac%e3%83%bc%e3%82%bf%e3%82%92%e4%bd%bf%e3%81%86%e6%96%b9%e6%b3%95\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/180","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=180"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/180\/revisions"}],"predecessor-version":[{"id":37374,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/180\/revisions\/37374"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}