Sirisha Challagirisirishachallagiri.hashnode.dev·Nov 11, 2023Swapping of two numbersswapping two numbers by using a temporary variable public class Swap { public static void main(String[] args) { int a=10,b=20; System.out.println("Before swapping: a="+a+",b="+b); int temp = a; a = b; b=temp; System.err.prin...1 likeCode With SiriJavaAdd a thoughtful commentNo comments yetBe the first to start the conversation.