public class HelloWorld {
public static void main(String[] args) {
int one = 20 ;
if(one%2=0){
System.out.println("one 是偶数");
}
比较是否相等使用 == ,=是赋值
one%2==0
=是赋值,==才是比较