Java Program to Swap two Variables
Given two numbers x and y, we need to swap their values. In this article, we will learn the Swapping of two numbers in Java. Examples of SwappingInput : x = 10, y = 20;Output : x = 20, y = 10Input : x = 213, y = 109Output : x = 109, y = 213Steps to Swap Two Numbers in JavaBelow are the simple steps