第5回では条件分岐(if文)についての学習をしました。今回は条件分岐(switch文)について解説していきます。 switch文 対象の式を評価した結果の値に一致するラベル(case文)の中の処理を実行する場合にswitch文を使用します。 switch文の書式 switch (式){ case 定数1 ...
Unlock the full InfoQ experience by logging in! Stay updated with your favorite authors and topics, engage with content, and download exclusive resources. Vivek Yadav, an engineering manager from ...
開発言語をJavaからSwiftへスイッチか? GoogleがAndroidアプリの開発に使うプログラム言語を 「Java」 から 「Swift」 へ切り替えることを検討しているとThe Next Webが伝えています。 Google may be considering Swift for use on Android Swiftは、 Appleが作ったプログラミング言語で ...