JAVA精品课程PPT-savitchAbsJavaPPT_c03教材课程.ppt

JAVA精品课程PPT-savitchAbsJavaPPT_c03教材课程.ppt

  1. 1、本文档共49页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
JAVA精品课程PPT-savitchAbsJavaPPT_c03教材课程.ppt

Chapter 3;Flow of Control;Branching with an if-else Statement;Compound Statements;Compound Statements;Omitting the else Part;Nested Statements;The switch Statement;The switch Statement;The switch Statement;The switch Statement;The switch Statement ;The conditional operator is a notational variant on certain forms of the if-else statement Also called the ternary operator or arithmetic if The following examples are equivalent: if (n1 n2) max = n1; else max = n2; vs. max = (n1 n2) ? n1 : n2; The expression to the right of the assignment operator is a conditional operator expression If the Boolean expression is true, then the expression evaluates to the value of the first expression (n1), otherwise it evaluates to the value of the second expression (n2);Boolean Expressions;Java Comparison Operators;Pitfall: Using == with Strings;Lexicographic and Alphabetical Order;Building Boolean Expressions;Evaluating Boolean Expressions;Truth Tables;Short-Circuit and Complete Evaluation;Short-Circuit and Complete Evaluation;Precedence and Associativity Rules;Precedence and Associativity Rules;Evaluating Expressions;Rules for Evaluating Expressions;Loops;while statement;while (Boolean_Expression) Statement Or while (Boolean_Expression) { Statement_1 Statement_2 Statement_Last };do-while Statement;do Statement while (Boolean_Expression); Or do { Statement_1 Statement_2 Statement_Last } while (Boolean_Expression);;Algorithms and Pseudocode;The for Statement;The for Statement Syntax;Semantics of the for Statement;for Statement Syntax and Alternate Semantics;for Statement Syntax and Alternate Semantics;The Comma in for Statements;Infinite Loops;Nested Loops;The break and continue Statements;The Labeled break Statement;The exit Statement;Loop Bugs;Tracing Variables;Assertion Checks;Assertion Checks

文档评论(0)

yuzongxu123 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档