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