- 博客(8)
- 收藏
- 关注
翻译 switch 语句
A switch statement executes statements based on the value of a variable or an expression.
2016-03-29 16:02:23 654
原创 案例分析:运用身体质量指数(BMI)衡量人体胖瘦程度
运用BMI及相关参考标准,衡量人体胖瘦程度。思路:Step 1 :表格拆解(明确各分段函数)Step 2:构造关系节点(Mapping)package bmi;/** * @see 关系节点 * @author JustBeGeek */public class Mapping{ private int gr
2016-03-29 09:41:01 4758
翻译 单分支 if 语句
说明:A one-way if statement executes an action if and only if the condition is true.语法格式:if (boolean-expression) { statement(s);}对应程序流程图:
2016-03-24 18:00:50 6624
翻译 嵌套if以及多路if-else语句
An if statement can be inside another if statement to form a nested if statement.The statement in an if or if-else statement can be any legal Java statement, includinganother if or if-else statement. The inner if statement is said to be nested inside th
2016-03-24 14:48:58 1237
翻译 双路选择: if-else 语句
If the boolean-expression evaluates to true, the statement(s) for the true case are executed; otherwise, the statement(s) for the false case are executed.
2016-03-24 13:47:51 563
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人