/**
* 比较两个新旧字符串数组
* @param oldArr 旧数组
* @param newArr 新数组
* @return Map 包含两个数组,相较于旧数组,新数组多了哪些元素,少了哪些元素
*/
public static Map<String,String[]> stringArrayCompare(String[] oldArr, String[] newArr){
List<String> addList = new ArrayList<>();
List<String> deleteList = new ArrayList<>();
for (String anOldArr:oldArr){
if(!ArrayUtils.contains(newArr,anOldArr)){
deleteList.add(anOldArr);
}
}

for (String aNewArr:newArr){
if(!ArrayUtils.contains(oldArr,aNewArr)){
addList.add(aNewArr);
}
}

String[] addArr = addList.toArray(new String[addList.size()]);
String[] deleteArr = deleteList.toArray(new String[deleteList.size()]);
Map<String,String[]> res = new HashMap<>();
res.put("addArr",addArr);
res.put("deleteArr",deleteArr);
return res;
}