public class MainClass { public static void main(String[] argv) { boolean x = true; int a = 0; int b = 1; double c = 2D; a = x ? b : c; System.out.println(); } }
Type mismatch: cannot convert from double to int