ASKER
Java is a platform-independent, object-oriented programming language and run-time environment, designed to have as few implementation dependencies as possible such that developers can write one set of code across all platforms using libraries. Most devices will not run Java natively, and require a run-time component to be installed in order to execute a Java program.
TRUSTED BY
return ((aSmile && bSmile) || (!aSmile && !bSmile));
this will be true if any of the two parts is true --> it will be truye
if either both aSmile and bSmile are true (aSmile && bSmile)
or if they are both false, then (!aSmile && !bSmile));
as boolean can be either true or false this two cases cover
all cases when these two bollean will be equal to each other,
therefore it is enough to check aSmile == bSmile