最佳答案
我有一个没有元素的 int
数组,我试图检查它是否为空。
例如,为什么下面代码中 if 语句的条件永远不为真?
int[] k = new int[3];
if (k == null) {
System.out.println(k.length);
}