I use %b for a Java printf() conversion specifier. I tried it recently and to my surprise it worked.
Here is the line of code:
System.out.printf("firstRobot == secondRobot: %b",firstRobot == secondRobot);
Here is the output:
firstRobot == secondRobot: false