This commit is contained in:
Mauve
2026-10-26 09:31:05 +08:00
parent 3a8a438668
commit 90cc47b14b
20 changed files with 576 additions and 233 deletions
+17 -2
View File
@@ -3,6 +3,21 @@ package com.mgm.mcrm;
public class TestRun {
public static void main(String[] args) {
Object[] arr = {"asdas", "null", 23, "asd", 's', 90L, 3.4F, 3.3};
System.out.println(nonNullAll(arr));
}
}
static boolean nonNullAll(Object ...arr) {
if (arr == null) return false;
if (arr.length == 0) return false;
for (Object o : arr) {
if (o == null) return false;
}
return true;
}
}