public class a_8 { public static void main(String[] args) { // TODO Auto-generated method stub //尖括號指到哪邊,就往哪邊移 >>>高位補0 >>高位補符號位 int a=10; int a1=8; System.out.println(a^a1); } } 輸出:2class