作为伪代码的一个例子:
if ((a mod 2) == 0) { isEven = true; } else { isEven = false; }
java modulo
java ×1
modulo ×1