public class MainClass { public static void main(String[] argv) { boolean x = true; int a = 0; int b = 1; int c = 2; if (x) { a = b; } else { a = c; } a = x ? b : c; System.out.println(a); } }
1