The following code
System.out.println(\"1 0 0: \" + (true ^ false ^ false)); System.out.println(\"1 0 1: \" + (true ^ false ^ true)); System.out.println(\"1 1 0:
'^' is a binary logical operator, not an n-ary operator.