Given:
public class Spock {
public static void main(String[] args) {
Long tail = 2000L;
Long distance = 1999L;
Long story = 1000L
It doesn't print anything because when the XOR operator is used with boolean arguments (as opposed to integers) will only return true if exactly one of the 2 operands is true.
In your first if both parts evaluate to true and true ^ true == false
In your second if both parts evaluate to false and false ^ false == false