/ ( )... Java - . , , , .
&& || - - . " " , , .
...
total > 4 || ++num > 15 && total > 0
total > 4 true, true, if , .
total 4, (total > 4) false , , (++num > 15 && total > 0).
num 15, AND (++num > 15) true , , , , AND (total > 0), , true. total > 0 , false.
, , .
if (total > 4) {
System.out.println("short");
} else {
if (++num > 15) {
if (total > 0) {
System.out.println("short");
}
}
}
System.out.println(num);
Java Java.