只需调用Math.abs即可。例如:
int x = Math.abs(-5);
将设置
x
5
上一篇 用jsonpath计数成员?
下一篇 Android首选项onclick事件
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号