网站大量收购独家精品文档,联系QQ:2885784924

java课堂笔记(java课堂笔记).doc

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

java课堂笔记(java课堂笔记) Monday: towards the abyss; Tuesday: endless road; Wednesday: before dawn; Thursday: life and death struggle; Friday: the darkness before dawn; Saturday: escape from the tigers jaws; Sunday: happy bachelor; Diploma / Diploma examination / self examination office / computer application, computer network, electronic commerce One Indicate starting from this directory; Do not add No. to the 2. if statement! The following: if if (I = = stop) break, with a semicolon (i.e. If (I = = stop); break; then the compiler error, but not check out, pay attention to; 3. continue statement usage: Int skip = 5; For (int i = 1; I 5; i++) { If (I = = skip) continue; System.out.println (i= + I); } The use of 4. for statements, such as: For (int i=0; I 5; i++) {... }; Pay attention to the semicolon!!! The execution process: first calculate the expression, and then judge the expression 2, then execute the method statement, and then execute expression 3, and then judge the expression 2, and then execute the method...... By this cycle. (the expression is calculated once.) 5. while statement form: While (logical expression) {statement} Execution process: First determine the value of the logical expression. If =true., then the statement behind the executor, and then again judge the conditions and repeated execution until the condition is untenable. 6. while do statement: Do{statement:...... }while (logical expression); Execution process: First execute the statement, then judge the value of the logical expression, if true, then execute the statement, otherwise the end of the cycle. 7. compare while, if, for; while and for are cyclic types; if is a one-time statement. 8. switch (I) means that the value of I is detected; the value of I can only be of int type (including automatically converted to int type, such as Chr shirt bate; examples): Public class Testswitch { Public static void main (String args[]) { Int i = 3; Switch (I) { Case 8: System.out.println (A); Break; Case 4:

您可能关注的文档

文档评论(0)

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

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

1亿VIP精品文档

相关文档