@@ -0,0 +1,384 @@
+import java.io.*;%0A%0Apublic class SwapTwoNumbers%7B%0A    public static void main(String args%5B%5D)%7B%0A        int x = 10;%0A        int y = 20;%0A        %0A        //before%0A        System.out.println(%22Before: x = %22+x+%22%5Cty = %22+y);%0A        %0A        //swap%0A        x = x + y;%0A        y = x - y;%0A        x = x - y;%0A        %0A        //after%0A        System.out.println(%22After: x = %22+x+%22%5Cty = %22+y);%0A    %7D%0A%7D

Swap two numbers without using third variable