1、在你的项目中引入hutool的jar包

2、首先我们定义出一个String类型的字符串

3、接着我们使用hutool包中的isNotEmpty方法。public static boolean isNotEmpty(final Object array)

4、调用方法3中的方法boolean empty = ArrayUtil.isNotEmpty(numbers);

5、运行程序查看代码结果

1、在你的项目中引入hutool的jar包

2、首先我们定义出一个String类型的字符串

3、接着我们使用hutool包中的isNotEmpty方法。public static boolean isNotEmpty(final Object array)

4、调用方法3中的方法boolean empty = ArrayUtil.isNotEmpty(numbers);

5、运行程序查看代码结果
