- 6
- 0
- 约4.71千字
- 约 5页
- 2018-01-10 发布于河南
- 举报
java 课后答案02review
Chapter 2 Elementary Programming
1. Valid identifiers: applet, Applet, $4, apps, x, y, radius
Invalid identifiers: a++, --a, 4#R, #44, class, public, int
Keywords:
class, public, int
double miles = 100;
final double KILOMETERS_PER_ MILE = 1.609;
double kilometers = KILOMETERS_PER_ MILE * miles;
System.out.println(kilometers);
The value of kilometers is 160.9.
3. There are three benefits of using constants: (1) you don’t have to repeatedly type the same value; (2) the value can be changed in a single location, if necessary; (3) the program is easy to read.
final int SIZE = 20;
4.
a = 46
您可能关注的文档
- 2012年(下)水平考(JAVA语言)复习.doc
- 复习课件unit2topic1sectionA--D.ppt
- 人教版九年级Unit10 By the time i got outside, the bus had already left. Section B (3a-4).ppt
- 八年级英语上册unit5Do you want to watch a game show setion B 课件 PPT.ppt
- java实验教案2011(上).doc
- 仁爱英语课件八年级下八下unit8 topic3 sectionB.ppt
- 八年级Unit 5 Do you want to watch a game show 课件Section B 1.ppt
- 信管06级-面向对象程序设计,,广东药学院.doc
- 八年级. Unit 5 Section B-1a-1e课件 (新版)人教新目标版.ppt
- Java400题.doc
最近下载
- 玉柴YC6108G发动机零件图册.pdf VIP
- 无人机测绘-无人机航飞教学课件.ppt VIP
- 内江市资中县2025-2026学年第二学期六年级语文期末考试卷(部编版含答案).docx VIP
- 《力学、电磁学》习题答案详解(程稼夫).pdf VIP
- 2021年高考生物真题 新课标卷Ⅰ有答案word版.pdf VIP
- 2026年雄鹰杯小动物医师技能大赛必练题库(350题).doc VIP
- 2026住院医师规培-重庆-重庆住院医师规培(全科医学)历年参考题库含答案详解5卷试题.docx VIP
- 八年级数学下册 正方形中十字架模型(解析版).pdf VIP
- 玉柴YC4D120-20-D1008发动机零件图册.pdf VIP
- 税务自查报告模板(2篇).docx VIP
原创力文档

文档评论(0)