이전까지 했던 책의 예제들 업로드합니다.
감사합니다.
package operator;
public class OperationEx4 {
public static void main(String[] args) {
int fatherAge = 45;
int motherAge = 47;
char ch;
ch = (fatherAge > motherAge) ? 'T' : 'F';
System.out.println(ch);
}
}
'JAVA 프로그래밍 > Do it! 자바 프로그래밍 입문' 카테고리의 다른 글
ifexample/IfExample1.java (0) | 2021.05.12 |
---|---|
operator/OperationEx5.java (0) | 2021.05.12 |
operator/OperationEx3.java (0) | 2021.05.12 |
operator/OperationEx2.java (0) | 2021.05.11 |
operator/OperationEx1.java (0) | 2021.05.11 |