public class java6_11 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int a=5,b=4;
boolean t1=a>b;
boolean t2=a==b;
System.out.println("a>b:"+t1);
System.out.println("a==b:"+t2);
}
}
布尔型与关系运算符的结合使用
最新推荐文章于 2020-05-15 15:03:34 发布