Regarding ternary operator..!
I have condition in my program... 

    boolean allow = false;  
        if RewardsSupport.isRewardsEnabled()) {  
            allow = true;         
        }  
        return (allow);

Could you please help me in converting the above code as per ternary operator..!! 
Regarding ternary operator..!
===

I have condition in my program... 

    boolean allow = false;  
        if RewardsSupport.isRewardsEnabled()) {  
            allow = true;         
        }  
        return (allow);

Could you please help me in converting the above code as per ternary operator..!! 