This commit is contained in:
RayzsYT committed 2024-07-14 01:23:58 +02:00
1 parent a93fbc699f
commit c0420edd5e
1 file changed
+29
@@ -0,0 +1,29 @@
package de.rayzs.pat.utils;
import java.util.*;
public class ArrayUtils {
public static boolean compareStringArrays(List<String> listA, List<String> listB) {
if(listA == null || listB == null) return false;
boolean found = Arrays.equals(listA.toArray(), listB.toArray());
if(found) return true;
for (String s : listA) {
found = listB.contains(s);
if(!found) break;
}
if(found) {
for (String s : listB) {
found = listA.contains(s);
if(!found) break;
}
}
return found;
}
}