java判断short数组是否为非空

时间:2024-10-29 23:53:51

1、在你的程序中引入hutool的jar包

java判断short数组是否为非空

2、接着定义出一个short数组

java判断short数组是否为非空

3、查看hutool包中的方法public static boolean isNotEmpty(final short... array)

java判断short数组是否为非空

4、接着调用方法将数组对象传入参数boolean empty = ArrayUtil.isNotEmpty(numbers);

java判断short数组是否为非空

5、运行程序查看结果

java判断short数组是否为非空
© 手抄报圈