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

 

 

Boolean ExpressionsNotEqual

prev  |  next  |  chance

Determine if two value are not equal with the != operator.

public static boolean compare(int val1, int val2) {
    boolean result = val1 != val2;
    return result;
}
Function Call  Return Value
compare(9, 9)
compare(22, 22)
compare(8, 7)
compare(12, 24)
compare(6, 4)

Experiment with this code on Gitpod.io

⬅ Back