Java求绝对值 二进制数十进制数十六进制数 二进制数 十进制数 private int getAbsoluteValue(int n) { int resultInt = n>0?n:-n; return resultInt; } 十六进制数