Check out example codes for "java boolean zen". It will help you in understanding the concepts better.

Code Example 1

// BAD ZEN					// GOOD ZEN			// EQUALS
if(booly == true) {}	=	if(booly) {}	= 	TRUE
if(rooly != true) {}	=	if(!rooly) {}	= 	FALSE
if(tooly == false) {}	=	if(!tooly) {}	= 	FALSE

Learn ReactJs, React Native from akashmittal.com