Integer p = 1,t = 2,tail = 3,head =4; p = (t != (t = tail)) ? t : head; System.out.println(p);
结果是3,因为取值是从做开始取的