<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>30.0-jre</version>
</dependency>
 
将集合的数据以指定字符分割

@Test
public void test2() {
ArrayList<String> str = Lists.newArrayList();
str.add(“aa”);
str.add(“bb”);
String join = Joiner.on(“,”).join(str);
System.out.println(join);
}
 
创建集合

final List<String> successOrder = Lists.newArrayList();
final Map<String, String> wrongIdOrder = Maps.newHashMap();

————————————————
版权声明:本文为CSDN博主「小馒头味豆浆」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_43639296/article/details/109286935