Most new Java developers quickly learn that they should generally compare Java Strings using String.equals(Object) rather than using ==. This is emphasized and reinforced to new developers repeatedly ...
プログラムに「もし〜なら…」という判断をさせるしくみが条件分岐です。 キーワードは 条件式(boolean式) と ブロック { ... } です。 11-1 真偽値と比較演算子 条件式は true(真)か false(偽)を返す式です。 () が条件式、{} 内が実行ブロック。 条件式が ...