JAVA-三元运算符

public class ifDemo07 {
    public static void main(String[] args) {
       int a=10;
       int b=20;

       int mx= a>b?a:b;
        System.out.println(mx);
    }
}
posted @ 2022-07-28 20:01  NiceTwocu  阅读(13)  评论(0编辑  收藏  举报