Since I started studying Java Silver, I will upload it as my memorandum. Since it is a rough memo, details are not described.
Logical operator
If the && operator is false in the expression on the left, it does not evaluate the expression on the right, so the variable b is not incremented.
int num1 = 10; int num2 = 10; if(10 < num1 && 10 < ++num2){ num1++; } System.out.println(num1 + num2);
Solution: 20
Recommended Posts