Hello,
I am pretty new to Java programming. I am having trouble with trying to convert an integer of value 0 to NULL. I have tried the following and it does not work:
if (a==0)
{
a=NULL;
}
Any suggestions? Is it even possible to put an integer back to NULL after it has been initialized? If asking for user input, is there a way for Java to leave the value NULL if the user simply hits "enter?"
Thank you in advance for your help.
I am pretty new to Java programming. I am having trouble with trying to convert an integer of value 0 to NULL. I have tried the following and it does not work:
if (a==0)
{
a=NULL;
}
Any suggestions? Is it even possible to put an integer back to NULL after it has been initialized? If asking for user input, is there a way for Java to leave the value NULL if the user simply hits "enter?"
Thank you in advance for your help.
Comment