기타연산자 종류 삼항 연산자 : 항이 3개인 연산자 ( 단항 연산자) (조건)? 참일때값 : 거짓일때값 ex1. int age = 18; System.out.println(age>19? "성인입니다" : "청소년입니다"); 출력화면 ex2. import java.util.Scanner; public class Traffic_Light { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("신호등 입력 프로그램"); System.out.println("빨간불 : 1, 초록불 : 2, 노란불 : 3"); int sign = sc.nextInt(); String result=sign==1..