当我尝试这段代码时,我在Eclipse上遇到错误
boolean notif = (Boolean) null; if(notif == null) // <== ERROR at this line saying "No suggestion available" (very helpful) { System.out.println("Notif = null"); }
为什么它不起作用?
java null boolean
boolean ×1
java ×1
null ×1