1、使用Integer中的方法

System.out.println(Integer.toHexString(~mode));// ~表示取反
System.out.println(Integer.toHexString(mode));//

 

相关文章: