Write a program in java to swap two numbers without using third variable and with third variable.