Here you can find the source of xor(final boolean x, final boolean y)
Parameter | Description |
---|---|
x | a boolean |
y | a boolean |
public static boolean xor(final boolean x, final boolean y)
//package com.java2s; //License from project: Open Source License public class Main { /**//from www . j a va 2s . c om * Boolean xor operation. Only true if x != y. * * @param x a boolean * @param y a boolean * @return true if x != y */ public static boolean xor(final boolean x, final boolean y) { return x != y; } }