public class MainClass { public static void main(String[] args) { String s = ""; Boolean b1 = true; Boolean b2 = false; if ((b2 = false) | (21 % 5) > 2) s += "x"; if (b1 || (b2 = true)) s += "y"; if (b2 == true) s += "z"; System.out.println(s); } }