1、在项目中引入hutool的jar包
2、首先定义一个String类型的字符串字符串是会用w分割
3、接着定义一个char字符w
4、List<String> split = StrUtil.split(str, separator);//将字符串分割为List集合
5、最后我们循环遍历得出结果
1、在项目中引入hutool的jar包
2、首先定义一个String类型的字符串字符串是会用w分割
3、接着定义一个char字符w
4、List<String> split = StrUtil.split(str, separator);//将字符串分割为List集合
5、最后我们循环遍历得出结果