|
@@ -86,23 +86,23 @@ public class StringUtil {
|
|
|
/**
|
|
|
* 比较两个列表的内容
|
|
|
*/
|
|
|
- public static List<String> compareList(List<String> A, List<String> B) {
|
|
|
- List<String> res = new ArrayList<>();
|
|
|
-
|
|
|
- for (String i : A) {
|
|
|
- if (!B.contains(i)) {
|
|
|
- res.add(i);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- for (String j : B) {
|
|
|
- if (!A.contains(j)) {
|
|
|
- res.add(j);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- return res;
|
|
|
- }
|
|
|
+// public static List<String> compareList(List<String> A, List<String> B) {
|
|
|
+// List<String> res = new ArrayList<>();
|
|
|
+//
|
|
|
+// for (String i : A) {
|
|
|
+// if (!B.contains(i)) {
|
|
|
+// res.add(i);
|
|
|
+// }
|
|
|
+// }
|
|
|
+//
|
|
|
+// for (String j : B) {
|
|
|
+// if (!A.contains(j)) {
|
|
|
+// res.add(j);
|
|
|
+// }
|
|
|
+// }
|
|
|
+//
|
|
|
+// return res;
|
|
|
+// }
|
|
|
|
|
|
/**
|
|
|
* 列表A是否包含列表B
|
|
@@ -337,6 +337,7 @@ public class StringUtil {
|
|
|
"yyyy-M-dH:mm",
|
|
|
"yyyy-M-dH:m",
|
|
|
"yyyy-MM-dd",
|
|
|
+ "yyyy年MM月dd日",
|
|
|
"yyyy年MM月dd日H时",
|
|
|
"yyyy/MM/ddHH:mm:ss",
|
|
|
"yyyy/MM/ddHH:mm",
|