定义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");
        }
        
        

    }

}

 

posted @ 2016-01-05 15:08  小美好。  阅读(211)  评论(0)    收藏  举报