日期:2014-05-20 浏览次数:20785 次
int a = 0xFF5100A5; long b = 0; for (int i=28; i>=0; i-=4) { b = b<<4 | (a>>>i & 0xF); } System.out.println(b); System.out.printf("%X\n", b);