Java Readme
stream
- 使用stream构造逗号分割字符串并用括号包括
List<Integer> ids = Lists.newArrayList(1, 2, 3);
String s = ids.stream().map(String::valueOf).collect(Collectors.joining(",", "(", ")")); // (1,2,3)
List<Integer> ids = Lists.newArrayList(1, 2, 3);
String s = ids.stream().map(String::valueOf).collect(Collectors.joining(",", "(", ")")); // (1,2,3)