2014年4月11日

java杂记

摘要: HexToInteger:public class HexToInteger { public static void main(String[] args){ int cid = 78823423; System.out.println((short)0x00000FFFF); //(short)0x00000FFFF == 0xFFFF 结果为-1 System.out.println(cid & (short)0x00000FFFF); //0x004B2BFF & 0xFFFFFFFF 结果为78823423 System.out.println(cid & 0 阅读全文

posted @ 2014-04-11 14:20 leihupqrst 阅读(275) 评论(0) 推荐(0)

导航