Java XNOR operator

后端 未结 4 800
难免孤独
难免孤独 2021-01-07 16:56

I do some research and I wrote some simple programs in java that suits my needs. I used logical operators AND,OR,XOR on integers but I miss XNOR operator. That what I\'m loo

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-07 17:33

    The operator for XNOR is A==B, or !(A^B). This returns a boolean value.

提交回复
热议问题