
package com.gang;
import java.util.Calendar;
import java.util.Date;
import java.util.HashSet;
import java.util.StringJoiner;
public class Harbor007 {
public static void main(String[] args) {
/* Calendar calendar = Calendar.getInstance();
calendar.add(Calendar.SECOND,10);
Date time = calendar.getTime();
System.out.println(time);*/
/* HashSet set = new HashSet<>();
set.add("1");
set.add("1");
set.add("1");
System.out.println(set);*/
StringJoiner notFourMustError = new StringJoiner(",");
notFourMustError.add("刘备");
notFourMustError.add("王道哈哈");
StringJoiner result = new StringJoiner(",");
System.out.println(notFourMustError);
result.add(notFourMustError + "部分事项未审核,请审核后在结束会议");
System.out.println(result.toString());
}
}
if (notFourMustError.length() != 0 || allFailErrorMessage.length() != 0) {
StringJoiner result = new StringJoiner(",");
if (notFourMustError.length() != 0) {
result.add(notFourMustError + "部分事项未审核,请审核后在结束会议");
}
if (allFailErrorMessage.length() != 0) {
result.add(allFailErrorMessage + "影响任免,不允许结束会议");
}
throw new SystemAccountException(result.toString());
}

import java.util.StringJoiner;
import java.util.stream.Collectors;
public static void main(String[] args) {
List list = Arrays.asList("大大", "的武当派开完票");
System.out.println(list.stream().collect(Collectors.joining("$$$")));
