定义xy比大小

package myjava;

public class Getif {

    public static void main(String[] args) {
        // TODO 自动生成的方法存根
        
        int x =45;
        int y = 12;
        if(x>y){
            System.out.println("变量x大于y");
        }
        
        if(x<y){
            
            System.out.println("变量x小于y");
        }
        
        

    }

}
原文地址:https://www.cnblogs.com/Yue0327/p/5102379.html