Java xor xOr(boolean x, boolean y)

Here you can find the source of xOr(boolean x, boolean y)

Description

x Or

License

Open Source License

Declaration

public static boolean xOr(boolean x, boolean y) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static boolean xOr(boolean x, boolean y) {
        return ((x || y) && !(x && y));
    }//w  ww.jav  a  2  s  .com
}

Related

  1. xor(boolean a[], boolean b[])
  2. xor(boolean b1, boolean b2)
  3. xor(boolean b1, boolean b2)
  4. xor(boolean o, boolean t)
  5. xor(boolean val1, boolean val2)
  6. xor(boolean... bools)
  7. xor(boolean[] array)
  8. xor(boolean[][] b1, boolean[][] b2)
  9. xor(byte abyte0[])