id/email
password
forgot password | create account
about | help | prefs
ReadingBatcode reading practice

 

 

Boolean ExpressionsAndOr1

prev  |  next  |  chance

Truth tables

public static boolean compare(boolean val1, boolean val2) {
    boolean result = val1 && val2;
    return result;
}
Function Call  Return Value
compare(true, true)
compare(true, false)
compare(false, true)
compare(false, false)

Experiment with this code on Gitpod.io

⬅ Back