摘要:
public static void main(String[] args) {
long serverId = 65535;
System.out.println("ServerId:" + serverId);
long a1 = 0b11110001001000000;// 123456
// 11110001001000000
// 0000000000000000
System.out.println("顺序号,a1:" + a1);
long a2 = a1 16;
System.out.println("左移16位,a2:" + a2); 阅读全文