Posts Tagged: swap two no

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: Lets try to find the error in this program. if we write the… Continue Reading →

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 →