- 1、本文档共27页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 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:
您可能关注的文档
- 《中学文科教学通论》序言(草稿)(School of Arts Teaching Theory the preface (Draft)).doc
- 醉乡酒海—中国古代酒具与酒文化-杜金鹏( the wine sea Chinese ancient wine and wine culture - Du Jinpeng).doc
- 心理学概论(毛利华班 2017年春季学期)期末笔记整理byAm.docx
- 云南金通达建材公司万吨水泥粉磨站可行性研究报告.doc
- A、B、C、D卷江苏省中小学教师心理健康知识竞赛题.doc
- -Visual Foxpro .上机指导与练习(第版)习题答案.doc
- 人一生要知道的中国艺术.doc
- 一年级语文下学期生字词组的归纳与整理..doc
- 2016年个人工作总结和下一步工作打算.doc
- 年全国一级建造师《专业工程管理与实务_(机电安装)》考题预测(一).doc
- 英语丨湖南省2025届高三下学期2月一轮复习收官联考英语试卷及答案.pdf
- 八年级数学下册常见几何模型全归纳之模型解读与提分精练(苏科版)专题09 特殊的平行四边形中的图形变换模型之旋转模型(解析版).docx
- 数学丨湖南省2025届高三下学期2月一轮复习收官联考数学试卷及答案.pdf
- 生物丨江苏省扬州市高邮市2025届高三下学期2月开学考试生物试卷及答案.pdf
- 政治丨广西壮族自治区邕衡名校·广西2025届高三春季开学考试政治试卷及答案.pdf
- 真核细胞的细胞器细胞核.ppt
- 程益基:特殊教育国家课程标准解读.ppt
- 综合性实验一质粒DNA的小量制备和电泳鉴定.ppt
- 英语初二上册unit2讲解、对话和练习.ppt
- 眼视光行业的现状及展望.ppt
文档评论(0)