1、首先你需要引入hutool的jar包
2、创建一个布尔类型的值
3、char c = BooleanUtil.toChar(b);//将参数放入方法
4、运行程序查看得到的结果
5、我们将false改为true