Posts Tagged: swap two no without using third variable in java

Swap two numbers without using third variable in java

In this article we learn how to swap two numbers without using third variable in java. Step 1: Lets open the notepad and write the following code: //code class demo { public static void main(string arg[]) { System.out.println(“Before swapping”); int… Continue Reading →