我正在将整数对象与原始整数进行比较,但如果整数对象为null,则会出现空指针异常 public static void main(String[] args) {
int b = 1;
at com.nfdil.loyalty.common.Test.main(Test.java:10) 我得到这个是因为它试图转换nul
我是Java的新手,在检查整数数组中的null元素时遇到问题。我使用Eclipse作为编辑器,检查null元素的代码行显示错误:if(a[i] != null) {The operator != is undefined for the argument type(s) int, nullObject[] a = new