Question: Write a java program to swap two variables. (If x = 2 and y = 4, your program should swap the variables and output 'x
Write a java program to swap two variables. (If x = 2 and y = 4, your program should swap the variables and output 'x = 4 and y = 2')
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
