class Main { public static void main(String[] args) { int n = 4; // condition ? valueIfTrue : valueIfFalse String label = n % 2 == 0 ? "even" : "odd"; System.out.println(label); } }
a value chosen inline