The operator is undefined

纵饮孤独 提交于 2019-12-03 16:14:13
sonOfRa

Primitive types in Java cannot be null. If you want to check for 0, do a != 0.

Put a into an Integer object, which can be compared to null:

Integer value = new Integer(a);

while (value != null)
{
    // Do stuff
}

you should assign (or) check NULL values only for a pointer. For integer values, initialise it to any number ,like a flag and check for that condition. NULL can be assigned or checked only with a pointer variable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!