java有车有房有能力最基本运用

public class yunsuan {

    public static void main(String[] args) {
        // 1是有,0是没有
        int i = 1, l = 0;// 有房
        int q = 1, w = 0;// 有钱
        int z = 1, c = 0;// 有能力

        if (i == l) {
            System.out.println("嫁给你");
        }

        else if (q == w) {
            System.out.println("嫁给你");
        }

        else if (z == c) {
            System.out.println("嫁给你");
        }

        else {
            System.out.println("不嫁");
        }

    }
}
原文地址:https://www.cnblogs.com/cuikang/p/5010342.html