01: package test; 02: 03: public class ReadUseTernaryOperator { 04: 05: public static void main(String[] args) { 06: int x = 1; 07: int y = 2; 08: int z = 3; 09: 10: System.err.println(x == 1 ? y : z); 11: } 12: 13: }