Java语言-布尔类型的使用实例。
//文件名:BoolExample.javapublic class BoolExample { public static void main(String[] args) { boolean b; b=false; System.out.println("b is "+b); b=true; System.out.println("b is "+b); //a boolean value can control the if stateme