这对于Blackberry而言并不特殊,它是标准的Java行为。
这是因为您正在执行整数数学运算:
int subexpr1 = 14 / 20; // 0int subexpr2 = subexpr1 * 100; // 0
请改用Double或更改顺序
int expr1 = (int) 14.0/20 * 100; // Very small possibility of rounding errorsint expr2 = 14 * 100 / 20; // Will ignore fraction parts



