Hi,
I've a simple object class as testObj.java with getter and setter methods.
In my code i need to check if the testObj object is null.
My code is :
testObj test = new testObj();
//invoke a method A which returns test as return type
if(test==null || test.equals("") )
{
System.out.prin tln("The test object is null);
}
But i'm not getting the expected...
Search Result
Collapse
2 results in 0.0014 seconds.
Keywords
Members
Tags
-
checking if an object is null
-
NVL IsNull equivilent in Java? (Null handling)
Hello all,
I was wondering if there a method/function etc that is simular to
Oracle's Nvl function. The funtion checks a parameter and if it is
null then is will output a given alternative. i.e. nvl(parameter1,
value1) if parameter1 is null then send value1.
I have a servlet with the following snippet of code that I'd like to
streamline as this is one of many checks to be made...ideas?
if(request.getP arameter("idcol ")!=...