Using (XOR) Exclusive Or To Swap Integers in Java

Today I learned that it’s possible to swap two variables without the need to use a third temporary variable.  It came as a surprise to me when I first heard this so I researched to see how it could be done.  I discovered it’s not very difficult and that all it takes to achieve this […]