Sar*_*dra 5 java operator-precedence
public class AndOperator {
public static void main(String[] arg) {
int value = 8;
int count = 10;
int limit = 11;
if (++value % 2 == 0 && ++count < limit) {
System.out.println("here");
System.out.println(value);
System.out.println(count);
} else{
System.out.println("there");
System.out.println(value);
System.out.println(count);
}
}
}
Run Code Online (Sandbox Code Playgroud)
我得到的输出为
there
9
10
Run Code Online (Sandbox Code Playgroud)
解释算数是10 ....