연산

String str = 
"""
a = %d
b = %d
""";
System.out.println(String.format(str, a, b));

x % 2 == 1 ? “홀수” : “짝수”;

-5 입력시 짝수가 출력됨