public static void main(String[] args) {
        int i=10,j=20;
        i&&j;

    }

这个错误是因为 &&符号需要两边都是布尔值 但是我这里写的是int类型的   如果出这个错误 一般是因为两边类型不对。