<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kouki_hoshi</author_name>
  <author_url>https://blog.hatena.ne.jp/kouki_hoshi/</author_url>
  <blog_title>Status Code 303 - See Other</blog_title>
  <blog_url>https://kouki-hoshi.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
    <anon>コード改善</anon>
  </categories>
  <description>概要 プログラミングを行ううえで、複数の選択があり基本的にどちらでも実装できる処理は数多くある。 これらは常にどっちを使うではなく、これらはプログラムが対象とする処理の内容に応じて使い分けるべきである。今回は、その中でも分岐を表す方法として if-else 文と条件演算子の使い分けについて記述する。 詳細説明 記述法の違い ここでは、ある条件に応じて、文字列変数 val を分岐させる処理を記述する。 if-else文 boolean condition = true; // ここに処理を分ける基準(条件式) string val = null; if(condition) { // 真の場合の…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkouki-hoshi.hatenablog.com%2Fentry%2F2016%2F05%2F02%2F161353&quot; title=&quot;if-else 文と条件演算子(?:)の使い分け - Status Code 303 - See Other&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-05-02 16:13:53</published>
  <title>if-else 文と条件演算子(?:)の使い分け</title>
  <type>rich</type>
  <url>https://kouki-hoshi.hatenablog.com/entry/2016/05/02/161353</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
