JAVA-if语句(一)

public class ifDemo01 {
    public static void main(String[] args) {
        boolean isgreen=true;
        isgreen=false;
        if(isgreen){
            System.out.println("绿灯行");
        }
    }
}

posted @ 2022-07-28 20:01  NiceTwocu  阅读(14)  评论(0编辑  收藏  举报