1、在你的demo中加入hutool的jar包
2、创建一个boolean类型的数组并初始化多个元素
3、创建一个boolean类型的被检查的元素
4、int i = ArrayUtil.indexOf(floats, number);//返回数组中指定元素所在位置
5、运行程序查看得到的结果为0