We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d50fd6 commit f2453fcCopy full SHA for f2453fc
src/main/java/com/thealgorithms/bitmanipulation/SwapNumbersUsingXor.java
@@ -26,17 +26,18 @@
26
* After these three steps, the values of a and b are swapped.
27
*
28
* For more information, refer to the
29
- * <a href="https://en.wikipedia.org/wiki/XOR_swap_algorithm"> XOR swap algorithm </a>.
+ * <a href="https://en.wikipedia.org/wiki/XOR_swap_algorithm">XOR swap algorithm</a>.
30
31
- * Example usage:
+ * <b>Example usage:</b>
32
* <code>
33
* int[] result = SwapNumbersUsingXor.swap(5, 3);<br>
34
* System.out.println("After swap: a = " + result[0] + ", b = " + result[1]);
35
* </code>
36
* </pre>
37
*/
38
public class SwapNumbersUsingXor {
39
-
+ private SwapNumbersUsingXor() {
40
+ }
41
/**
42
* Swaps two numbers using XOR.
43
0 commit comments