Java编码规范及代码检查.ppt

* * if语句: if (condition) { statements; } if (condition) { statements1; } else { statements2; } for语句 for (initialization; condition; update) { statement; } while语句 while (condition) { statements; } 如果使用无限循环,建议使用: while (true) { statements; } do-while语句 do { statements; } while (condition); switch语句 switch(condition) { case 1: case 2: statements; break; default: statements; break; } try语句 try { statments; } catch(exception-declaration) { statements; } try { statements; } finally { statements; } try {

文档评论(0)

1亿VIP精品文档

相关文档