1.for应该体现其功能性,就是for条件里应该只包含所有的循环控制变量。不能包含其他变量。同时控制变量不应该在除了for header里面的其他地方出现。
2.建议都用<=,>=含有等号,同时不要在if语句中需要避免side effect
3.end of file(in unix ctrl+d,windows ctrl+z)
4. switch case + enum is perfect.
5. ^ & | 和C语言完全不一样,这个表示条件全部考察。
6. %b for boolean
7. 结构化程序设计,if while is everything。
Java How 2 Program Control Statements chapter5_end
最新推荐文章于 2024-04-27 17:30:34 发布