atmaling Posted December 15, 2010 Share Posted December 15, 2010 Hi All,I am using the following logical operator in print when expression.!$P{NO_DATA}where NO_DATA is a parameter of java.lang.BooleanBut I am getting following error:The operator ! is undefined for the argument type(s) Boolean.However I run following sample java program successfully: public static void main(String[] args) { Boolean x=true; Boolean y=!x; System.out.println("X=="+x); System.out.println("Y=="+y); } Please help me Link to comment Share on other sites More sharing options...
atmaling Posted December 15, 2010 Author Share Posted December 15, 2010 It worked as below: new Boolean(!($P{NO_DATA}.booleanValue())) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now