-
사용법과 예시 변수 = [boolean 조건식] ? [true일 때 값] : [false일 때 값]; boolean isTrue = false; int num = 5; isTrue = (num>0) ? true:false;