int a=10; int b=10; a==b 通过==判断两个int值是否相等。 if(a==b){ 相等 }else{ 不相等 } 转载于:https://www.cnblogs.com/TangGe520/p/8888308.html