public class test {
public static void main(String args[]) {
boolean x = true;
int a;
if (x)
a = x ? 1 : 2;
else
a = x ? 3 : 4;
System.out.println(a);
}
}
public class test {
public static void main(String args[]) {
boolean x = false;
int a;
if (x)
a = x ? 1 : 2;
else
a = x ? 3 : 4;
System.out.println(a);
}
}
public class Test {
public static void main(String[] args) {
int x = 25;
if (x < 50 && x < 0) {
System.out.println("OK");
}
if (x < 50 & x > 0) {
System.out.println("Yup");
}
}
}