试题详情
- 单项选择题Which code determines the int value foo closest to, but not greater than, a double value bar?()
A、 Int foo = (int) Math.max(bar);
B、 Int foo = (int) Math.min(bar);
C、 Int foo = (int) Math.abs(bar);
D、 Int foo = (int) Math.ceil(bar);
E、 Int foo = (int) Math.floor(bar);
F、 Int foo = (int) Math.round(bar);
- E
关注下方微信公众号,在线模考后查看
热门试题