赞
踩
int a = 5;
int b = 5;
boolean result = (a == b); // result为true,因为a和b的值相等
int a = 5;
int b = 10;
boolean result = (a != b); // result为true,因为a和b的值不相等
int a = 10;
int b = 5;
boolean result = (a >= b); // result为true,因为a大于等于b
int a = 10;
int b = 5;
boolean result = (a > b); // result为true,因为a大于b
int a = 5;
int b = 10;
boolean result = (a <= b); // result为true,因为a小于等于b
int a = 5;
int b = 10;
boolean result = (a < b); // result为true,因为a小于b
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。