关系运算符返回的结果

import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;
import org.w3c.dom.ls.LSOutput;

public class Demo03 {
public static void main(String[] args) {
//关系运算符返回的结果:正确or错误
int a = 10;
int b = 20;

System.out.println(a>b);
System.out.println(a<b);
System.out.println(a==b);

}


}
输出:

false
true
false

Process finished with exit code 0

posted @ 2021-08-19 11:21  小风扇呜呜呜  阅读(99)  评论(0)    收藏  举报