<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kakts</author_name>
  <author_url>https://blog.hatena.ne.jp/kakts/</author_url>
  <blog_title>kakts-log</blog_title>
  <blog_url>https://kakts.dev/</blog_url>
  <categories>
  </categories>
  <description>以下の３つのメソッドは、与えられたint型の配列から、目的の数字があるかどうかを判定するメソッドであり、処理自体は変わらないが、1から3に行くにつれてリファクタリングされている。 あるものを判定するためのメソッドでは、目的の数字があるかどうかの情報を保持するためにboolean型のflagを使いがちだが、実装においては必ずしも必要なわけでなく、むしろ無い方が全体のコードがすっきりする場合が多い。そして、関数内でもし目的の数字が見つかった場合、すぐreturnで返してやることにより、そもそもbooleanの変数が必要なくなり、実際かなりみやすくなる。public static boolean f…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkakts.dev%2Fentry%2Fjava_Remove_Control_Flag&quot; title=&quot;java Remove Control Flag - kakts-log&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>2013-06-28 12:49:00</published>
  <title>java Remove Control Flag</title>
  <type>rich</type>
  <url>https://kakts.dev/entry/java_Remove_Control_Flag</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
